web\HeaderCollection get()

get() public method

Returns the named header(s).

public string|array get ( $name, $default = null, $first = true )
$name string

The name of the header to return

$default mixed

The value to return in case the named header does not exist

$first boolean

Whether to only return the first header of the specified name. If false, all headers of the specified name will be returned.

return string|array

The named header(s). If $first is true, a string will be returned; If $first is false, an array will be returned.

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

Please login to continue.