Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

decodeQuotedPrintable(
string $string
)
:
string
decode a quoted printable encoded string
The charset of the returned string depends on your iconv settings.
Name | Type | Description |
---|---|---|
$string | string | encoded string |
Type | Description |
---|---|
string | decoded string |

splitContentType(
string $type, string $wantedPart
=
null
)
:
string|array
split a content type in its different parts
Name | Type | Description |
---|---|---|
$type | string | content-type |
$wantedPart | string | the wanted part, else an array with all parts is returned |
Type | Description |
---|---|
string|array | wanted part or all parts as array('type' => content-type, partname => value) |

splitHeaderField(
$field, string $wantedPart
=
null, string $firstName
=
0
)
:
string|array
split a header field like content type in its different parts
Name | Type | Description |
---|---|---|
$field | ||
$wantedPart | string | the wanted part, else an array with all parts is returned |
$firstName | string | key name for the first part |
Type | Description |
---|---|
string|array | wanted part or all parts as array($firstName => firstPart, partname => value) |
Exception | Description |
---|---|
\Zend_Exception |

splitMessage(
string $message, array $headers, string $body, string $EOL
=
Zend_Mime::LINEEND
)
:
null
split a message in header and body part, if no header or an invalid header is found $headers is empty
The charset of the returned headers depend on your iconv settings.
Name | Type | Description |
---|---|---|
$message | string | raw message with header and optional content |
$headers | array | output param, array with headers as array(name => value) |
$body | string | output param, content of message |
$EOL | string | EOL string; defaults to {@link Zend_Mime::LINEEND} |
Type | Description |
---|---|
null |

splitMessageStruct(
string $message, string $boundary, string $EOL
=
Zend_Mime::LINEEND
)
:
array|null
decodes a mime encoded String and returns a struct of parts with header and body
Name | Type | Description |
---|---|---|
$message | string | raw message content |
$boundary | string | boundary as found in content-type |
$EOL | string | EOL string; defaults to {@link Zend_Mime::LINEEND} |
Type | Description |
---|---|
array|null | parts as array('header' => array(name => value), 'body' => content), null if no parts found |
Exception | Description |
---|---|
\Zend_Exception |

splitMime(
string $body, string $boundary
)
:
array
Explode MIME multipart string into seperate parts
Parts consist of the header and the body of each MIME part.
Name | Type | Description |
---|---|---|
$body | string | raw body of message |
$boundary | string | boundary as found in content-type |
Type | Description |
---|---|
array | parts with content of each part, empty if no parts found |
Exception | Description |
---|---|
\Zend_Exception |