json_decode使用
来源:互联网 发布:无法启用网络发现 编辑:程序博客网 时间:2024/06/16 03:35
json_decode —对 JSON 格式的字符串进行编码
说明
mixedjson_decode( string
$json
[, bool $assoc
= false [, int $depth
= 512 [, int $options
= 0 ]]] )接受一个 JSON 格式的字符串并且把它转换为 PHP 变量
参数
json
待解码的
json
string格式的字符串。This function only works with UTF-8 encoded data.
assoc
当该参数为
TRUE
时,将返回 array 而非 object 。depth
User specified recursion depth.
options
Bitmask of JSON decode options. Currently only
JSON_BIGINT_AS_STRING
is supported (default is to cast large integers as floats)
返回值
assoc设置为true时返回数组,false时返回对象。
Returns the value encoded in json
in appropriate PHP type. Valuestrue, false and null (case-insensitive) are returned asTRUE
, FALSE
and NULL
respectively. NULL
is returned if thejson
cannot be decoded or if the encoded data is deeper than the recursion limit.
0 0
- json_decode使用
- json_decode使用
- json_decode使用注意事项
- json_decode
- php使用json_decode返回NULL
- php使用json_decode返回NULL
- json_encode与json_decode使用细节
- php使用json_decode返回NULL
- php使用json_decode返回NULL
- PHP使用json_decode转换unicode问题
- php使用json_decode解析json返回NULL
- php使用json_decode解析json返回NULL
- 使用json_decode()的一些小积累
- php中json_encode和json_decode使用注意事项
- PHP POST获取的JSON使用json_decode返回NULL
- PHP POST获取的JSON使用json_decode返回NULL
- json_decode用法
- PHP json_decode
- PHP调试时print_r ,var_dump的区别
- SIFT特征
- Oracle中Merge into ,亲测可行
- POJ 1222 开关问题高斯消元法
- CI静态化页面
- json_decode使用
- Java理论与实践:正确使用volatile变量 (r)
- js 检验 正则表达式 收藏
- golang微信公众平台支付错误 chooseWxPay:fail
- 从SimpleDateFormat出发去理解线程安全
- SQL Server2008函数大全(完整版)
- 中华经典网络军刀
- POJ-1741 点分治
- java枚举类型 Enum