json_decode()
json_decode( string $string, bool $assoc_array = false )
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$string | (string) | 必需 | |
$assoc_array | (bool) | 可选 |
返回(Return)
(object|数组)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
wp-includes/compat.php:304 | 0 | 0 |
笔记(Notes)
//转化为对象
json_decode() 为WP2原创文章,链接:https://www.wp2.cn/functions/json_decode/