$arr = array(
<code>0 => 'first', 1 => 'second', 2 => 'third' );</code>
echo json_encode($arr);
echo "
";
echo 1234;
phpinfo();
?>
$ch = curl_init();//初始化// curl_setopt($ch, CURLOPT_URL, "http://localhost/info. ,包括URL
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
//執行並獲取HTML文檔內容
$output = curl_exec($ch);
//釋放curl句柄
curl_close($ch);
//列印所得的資料
print_r($output);
?>