码迷,mamicode.com
首页 > Web开发 > 详细

Json_decode:详解

时间:2017-05-16 13:12:04      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:字符串   support   default   text   array   data   mil   转换   user   

Json_decode:详解

json_decode — 对 JSON 格式的字符串进行编码

 

mixed json_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)

Json_decode:详解

标签:字符串   support   default   text   array   data   mil   转换   user   

原文地址:http://www.cnblogs.com/lovebing/p/6860527.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!