妳試試下面的代碼,希望能給妳啟示:
<?php$str=file_get_contents('http網址');
$json=json_decode($str,true);
echo?'<pre>';
print_r($json);
echo?'</pre>';
echo?$json['body']['name'];//沒有詳細看妳的圖片,可能是用這樣的辦法獲得妳需要的內容。
>妳試試下面的代碼,希望能給妳啟示:
<?php$str=file_get_contents('http網址');
$json=json_decode($str,true);
echo?'<pre>';
print_r($json);
echo?'</pre>';
echo?$json['body']['name'];//沒有詳細看妳的圖片,可能是用這樣的辦法獲得妳需要的內容。
>