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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.