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 ; } |
new_json_encode
上一篇:write_error_log
有问题可以加入织梦技术QQ群一起交流学习
本站vip会员 请加入 VIP②群 PS:加入时备注用户名或昵称
普通注册会员或访客 请加入技术交流②群
作者:54818模板网 关注:652 时间:2023-03-17 11:45:16
相关网站教程: