Documentation

Encoding : string
in package

MIME part body encoding enum

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
3.0.0

Table of Contents

Cases

_7BIT  = '7bit'
_8BIT  = '8bit'
BASE64  = 'base64'
BINARY  = 'binary'
QUOTED_PRINTABLE  = 'quoted-printable'
RAW_URL  = 'RAW_URL'
URL  = 'URL'

Methods

fromHeaderValue()  : self|null
Map a Content-Transfer-Encoding header value (case-insensitive) back to its Encoding case, or null if unrecognized.
toHeaderValue()  : string|null
Map to the Content-Transfer-Encoding wire token, or null for encodings that aren't a real MIME transfer encoding (URL/RAW_URL are used for HTTP form-field encoding, not message wire format).

Cases

Methods

fromHeaderValue()

Map a Content-Transfer-Encoding header value (case-insensitive) back to its Encoding case, or null if unrecognized.

public static fromHeaderValue(string $value) : self|null
Parameters
$value : string
Return values
self|null

toHeaderValue()

Map to the Content-Transfer-Encoding wire token, or null for encodings that aren't a real MIME transfer encoding (URL/RAW_URL are used for HTTP form-field encoding, not message wire format).

public toHeaderValue() : string|null
Return values
string|null

        
On this page

Search results