PHP json_decode()函数以及参数用法

json_decode(value,option)参数描述value必填。待解码的json字符串。该函数只能接受UTF-8编码的数据options可选默认false转为对象。true转为数组。<?php$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';var_dump(json_decode($json));var_dump(json_decode($js...

阅读全文