💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
# xn\_json\_decode() ## xn\_json\_decode() ``` <pre class="calibre11">``` xn_json_decode($json) ``` ``` #### 【功能】 对 JSON 格式的字符串进行解码,返回数组(非对象)。 #### 【参数】 ``` <pre class="calibre11">``` $json:JSON 格式的字符串 ``` ``` #### 【用例】 ``` <pre class="calibre11">``` <?php include './xiunophp/xiunophp.php'; $json = '{"name":"中文"}'; $r = xn_json_decode($json); print_r($r); /* 结果: Array( 'name'=>'中文', ) */ ?> ``` ```