©
本文档使用
php.cn手册 发布
(PECL pecl_http >= 0.12.0)
http_parse_message — Parse HTTP messages
$message
)
Parses the HTTP message
into a simple
recursive object .
message
string containing a single HTTP message or several consecutive HTTP messages
Returns a hierarchical object structure of the parsed messages.
Example #1 Using http_parse_message()
<?php
define ( 'URL' , 'http://www.example.com/' );
print_r ( http_parse_message ( http_get ( URL , array( 'redirect' => 3 ))));
?>
以上例程的输出类似于:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|