json_decode($string,[bool $res]);//对 JSON 格式的字符串进行编码
例:
$str = '{"1":[2,3],"2":[3]}';$str = json_decode($str,true);var_dump($str); array(2) { [1]=> array(2) { [0]=> int(2) [1]=> int(3) } [2]=> array(1) { [0]=> int(3) } }
json_decode($string,[bool $res]);//对 JSON 格式的字符串进行编码
例:
$str = '{"1":[2,3],"2":[3]}';$str = json_decode($str,true);var_dump($str); array(2) { [1]=> array(2) { [0]=> int(2) [1]=> int(3) } [2]=> array(1) { [0]=> int(3) } }
版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。