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. |
Please login to continue.