web\CookieCollection offsetGet()

offsetGet() public method

Returns the cookie with the specified name.

This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like $cookie = $collection[$name];. This is equivalent to get().

public yii\web\Cookie offsetGet ( $name )
$name string

The cookie name

return yii\web\Cookie

The cookie with the specified name, null if the named cookie does not exist.

doc_Yii
2016-10-30 17:14:52
Comments
Leave a Comment

Please login to continue.