Method |
Description |
|
add ( string $name, string $value ) |
Adds a new header. |
|
count ( ) : integer |
Returns the number of headers in the collection. |
|
fromArray ( array $array ) |
Populates the header collection from an array. |
|
get ( string $name, mixed $default = null, boolean $first = true ) : string | array |
Returns the named header(s). |
|
getCount ( ) : integer |
Returns the number of headers in the collection. |
|
getIterator ( ) : ArrayIterator |
Returns an iterator for traversing the headers in the collection. |
|
has ( string $name ) : boolean |
Returns a value indicating whether the named header exists. |
|
offsetExists ( string $name ) : boolean |
Returns whether there is a header with the specified name. |
|
offsetGet ( string $name ) : string |
Returns the header with the specified name. |
|
offsetSet ( string $name, string $value ) |
Adds the header to the collection. |
|
offsetUnset ( string $name ) |
Removes the named header. |
|
remove ( string $name ) : array |
Removes a header. |
|
removeAll ( ) |
Removes all headers. |
|
set ( string $name, string $value = '' ) |
Adds a new header. |
|
setDefault ( string $name, string $value ) |
Sets a new header only if it does not exist yet. |
|
toArray ( ) : array |
Returns the collection as a PHP array. |
|