php获取通过url的json数据,返回的是空值 $x = json_decode($_GET['apply']); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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( [apply] => stdClass Object ( [name] => 4747474 [site] => http://4444444444444444 [icon] => 47 [information] => 474 [about] => 747 [weibo] => 74444444444 [email] => 74444444444444444 [moblie] => 89742589633 [isfree] => y [applytime] => 1349939108 )) LZ地址中参数apply前面多了个&符号,你看会不会是这个的问题 $json_string = $_GET["apply"]; if(ini_get("magic_quotes_gpc")=="1") { $json_string=stripslashes($json_string); } 类似这样的数组怎么合并? Unable to load dynamic library 一个函数 被人家说,所以还是将问题说清楚点,哎,没经验真难! 请教一个简单的速度问题?? 用PHP访问WebService,如何看懂WSDL中的数据格式呢? 关于手机上传图片,然后php接收的问题 web开发高价购买全套方案!(项目合作) ISAPI下的PHP如何得到证书 只有10分了。请问如何求出一个字符串中含某个字符的个数 其实Editplus可以这样用!! php短信接口问题(无法获取回复的短信-移动MAS2.0 Webservice方式)
看輸出什麽?
(
[apply] => stdClass Object
(
[name] => 4747474
[site] => http://4444444444444444
[icon] => 47
[information] => 474
[about] => 747
[weibo] => 74444444444
[email] => 74444444444444444
[moblie] => 89742589633
[isfree] => y
[applytime] => 1349939108
))
if(ini_get("magic_quotes_gpc")=="1")
{
$json_string=stripslashes($json_string);
}