Encoding
: string
in package
MIME part body encoding enum
Tags
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
BASE64
QUOTED_PRINTABLE
URL
RAW_URL
BINARY
_7BIT
_8BIT
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|nulltoHeaderValue()
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