欢迎来到 54818模板网!这是一个yzmcms的模板分享站。

new_json_encode

相关案例演示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**(V6.6 新增) (V6.7 更新)
 * 兼容PHP低版本的json_encode
 * @param  array   $array
 * @param  integer $options
 * @param  integer $depth 
 */
function new_json_encode($array$options = 0, $depth = 0){
    if(version_compare(PHP_VERSION,'5.4.0','<')) {
        $jsonstr = json_encode($array);
    }else{
        $jsonstr $depth ? json_encode($array$options$depth) : json_encode($array$options);
    }   
    return $jsonstr;
}

    上一篇:write_error_log

    下一篇:check_ip_matching

    作者:54818模板网 关注:652 时间:2023-03-17 11:45:16
    相关网站教程