web\HeaderCollection offsetGet()

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.

doc_Yii
2016-10-30 17:15:08
Comments
Leave a Comment

Please login to continue.