b. 输出:
array(2) {
[0]=>
string(6) "hello"
[1]=>
string(5) "world"
}
b. 输出:
string(11) "hello world"
b. 输出:
string(11) "hello world"
b. 输出:
string(11) "hello world"\n";
} else {
stream_set_blocking($fp,0);
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: {$url}\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
var_dump(fgets($fp, 128));
}
fclose($fp);
}
b. 输出:
string(11) "hello world"
上一篇:php实现多进程
下一篇:php面向对象的示例分析