// json格式的数据
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
// 转换成对象
var_dump(json_decode($json));
// object(stdClass)#1 (5) { ["a"]=> int(1) ["b"]=> int(2) ["c"]=> int(3) ["d"]=> int(4) ["e"]=> int(5) }
echo"<br/>";
// 转换成数组
var_dump(json_decode($json, true));
//array(5) { ["a"]=> int(1) ["b"]=> int(2) ["c"]=> int(3) ["d"]=> int(4) ["e"]=> int(5) }