|
update : 2015.11.03
php.shukuma.com검색:
|
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실패 시 예제
Example #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
)
참고
|