HTTP エリソ�
PHP Manual

http_parse_headers

(PECL pecl_http >= 0.10.0)

http_parse_headersHTTP ・リ・テ・タ、ム。シ・ケ、ケ、�

タ篶タ

array http_parse_headers ( string $header )

HTTP ・リ・テ・タ、ム。シ・ケ、キ。「マ「チロヌロホヒウハヌシ、キ、゙、ケ。」

・ム・鬣癸シ・ソ

header

HTTP ・リ・テ・タ、゙、猝クサ昀」

ハヨ、�ヘ

タョクキ、ソセ�遉ヒヌロホ「 シコヌヤ、キ、ソセ�遉ヒ FALSE 、ヨ、キ、゙、ケ。」

ホ�

ホ�1 http_parse_headers() 、ホサネヘムヒ。

<?php
$headers 
"content-type: text/html; charset=UTF-8\r\n".
  
"Server: Funky/1.0\r\n".
  
"Set-Cookie: foo=bar\r\n".
  
"Set-Cookie: baz=quux\r\n".
  
"Folded: works\r\n\ttoo\r\n";
print_r(http_parse_headers($headers));
?>

セ螟ホホ网ホスミホマ、マーハイシ、ネ、ハ、熙゙、ケ。」

Array
(
  [Content-Type] => text/html; chatset=UTF-8
  [Server] => Funky/1.0
  [Set-Cookie] => Array
  (
    [0] => foo=bar
    [1] => baz=quux
  )
  [Folded] => works
    too
)

サイケヘ


HTTP エリソ�
PHP Manual