PHP は URL を通じて JSON データを取得し、null 値を返します
http://php.net/api/apply.php?&apply={"apply":{"name":"4747474","site": "http://444444444444444"、"アイコン":"47"、"情報":"474"、"概要":"747"、"微博":"74444444444"、"メール":"744444444444444444"、"モバイル":"89742589633","isfree":"y","applytime":1349939108}}
これはリンクです。このページの json 形式を取得するにはどうすればよいですか?
------解決策---------
$x = json_decode($_GET['apply ' ]);
-----解決策---------
var_dump(json_decode($_GET [' apply'],true));
出力を見てください?
------解決策---------
var_dump(json_decode(urldecode($_GET[' apply ']),true));
-----解決策---------
print_r(json_decode('{"apply":{"name":"4747474","site":"http:\/\/4444444444444444","icon":"47","information":"474","about":"747","weibo":"74444444444","email":"74444444444444444","moblie":"89742589633","isfree":"y","applytime":1349939108}}'));
stdClass Object<br />(<br /> [apply] => stdClass Object<br /> (<br /> [name] => 4747474<br /> [site] => http://4444444444444444<br /> [icon] => 47<br /> [information] => 474<br /> [about] => 747<br /> [weibo] => 74444444444<br /> [email] => 74444444444444444<br /> [moblie] => 89742589633<br /> [isfree] => y<br /> [applytime] => 1349939108<br /> )<br /><br />)<br /><br />