int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) _json_decode">
赞
踩
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; //解析为json对象 var_dump(json_decode($json)); //解析为数组 var_dump(json_decode($json, true)); 代码执行结果 object(stdClass)#1 (5) { ["a"] => int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) ["e"] => int(5) } array(5) { ["a"] => int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) ["e"] => int(5) }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。