|
update : 2015.11.03
php.shukuma.com검색:
|
http_parse_headers(PECL pecl_http >= 0.10.0) http_parse_headers — Parse HTTP headers 설명
array http_parse_headers
( string
$header
)Parses HTTP headers into an associative array. 인수
반환값
Returns an array on success실패 시 예제
Example #1 Using http_parse_headers()
<?php위 예제의 출력:
Array
(
[Content-Type] => text/html; charset=UTF-8
[Server] => Funky/1.0
[Set-Cookie] => Array
(
[0] => foo=bar
[1] => baz=quux
)
[Folded] => works
too
)
|