offsetGet() public method
Returns the header with the specified name.
This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like $header = $collection[$name];. This is equivalent to get().
| public string offsetGet ( $name ) | ||
|---|---|---|
| $name | string |
The header name |
| return | string |
The header value with the specified name, null if the named header does not exist. |
Please login to continue.