博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
json_decode参数
阅读量:7097 次
发布时间:2019-06-28

本文共 904 字,大约阅读时间需要 3 分钟。

hot3.png

 json_decode ( string $json [, bool $assoc = false [, int $depth = 512 [, int $options = 0 ]]] )

接受一个 JSON 编码的字符串并且把它转换为 PHP 变量

  • json

  • 待解码的 json  格式的字符串。

    这个函数仅能处理 UTF-8 编码的数据。

    Note:

    PHP implements a superset of JSON as specified in the original  - it will also encode and decode scalar types and NULL. RFC 4627 only supports these values when they are nested inside an array or an object.

    Although this superset is consistent with the expanded definition of "JSON text" in the newer (which aims to supersede RFC 4627) and , this may cause interoperability issues with older JSON parsers that adhere strictly to RFC 4627 when encoding a single scalar value.

  • assoc

  • 当该参数为 TRUE 时,将返回  而非  。

  • 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)

转载于:https://my.oschina.net/sharesuiyue/blog/788987

你可能感兴趣的文章
Error:flask_sqlalchemy
查看>>
算法3-排序-简单选择排序
查看>>
使用mysql触发器脚本,解决流水数据的添加。
查看>>
SIP and RTP Stack
查看>>
Activity间用Intent、Bundle、onActivityResult进行传值
查看>>
在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。
查看>>
AC自动机 - 多模式串的匹配运用 --- HDU 3065
查看>>
B-树学习笔记
查看>>
黑客发布iOS 4.1永久越狱程序
查看>>
T-Mobile证实数据泄露 但客户暂无风险
查看>>
使用 MEF 公开 Silverlight“.NET研究” MVVM 应用程序中的接口
查看>>
Random Sequence 2011ACM福州赛区网络赛
查看>>
node.js 文件操作
查看>>
异常不可用于逻辑处理
查看>>
小米手机如期而至
查看>>
STM32 RCC实验 MCO脚输出时钟波形
查看>>
Flash 最小化,帧速变慢的问题
查看>>
java对redis的基本操作(一)
查看>>
基因组印记
查看>>
34个漂亮的应用程序后台管理界面(系列三)
查看>>