Definition at line 29 of file HeaderValue.php.
◆ assertValid()
static assertValid |
( |
|
$value | ) |
|
|
static |
Assert that the header value is valid.
Raises an exception if invalid.
- Parameters
-
- Exceptions
-
Definition at line 129 of file HeaderValue.php.
131 if (! self::isValid(
$value)) {
132 #require_once 'Zend/Mail/Exception.php';
◆ filter()
◆ isValid()
Determine if the header value contains any invalid characters.
- See also
- http://www.rfc-base.org/txt/rfc-2822.txt (section 2.2)
- Parameters
-
- Returns
- bool
Definition at line 90 of file HeaderValue.php.
93 for (
$i = 0;
$i < $tot;
$i += 1) {
95 if (($ord < 32 || $ord > 126)
102 if (
$i + 2 >= $tot) {
109 if ($lf !== 10 || $sp !== 32) {
The documentation for this class was generated from the following file: