<?php
//json格式
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
//解码显示,参数二默认false,返回对象类型
var_dump(json_decode($json));
echo "<br>";
print_r(json_decode($json));
echo "<br>";
//解码显示,参数二true,返回array数组类型
var_dump(json_decode($json,true));
echo "<br>";
print_r(json_decode($json,true));
echo "<br>";