http_parse_cookie(PECL pecl_http >= 0.20.0) http_parse_cookie — Parse HTTP cookie Описание
object http_parse_cookie
( string $cookie
[, int $flags
[, array $allowed_extras
]] )
Parses HTTP cookies like sent in a response into a struct. Список параметров
Возвращаемые значенияReturns a stdClass object on success или FALSE в случае возникновения ошибки. Примеры
Пример #1 Using http_parse_cookie()
<?phpРезультат выполнения данного примера:
stdClass Object
(
[cookies] => Array
(
[foo] => bar
[bar] => baz
)
[extras] => Array
(
[comment] =>
)
[flags] => 16
[expires] => 0
[path] => /
[domain] => example.com
)
Смотрите также
|
||