php 时间获取相差8小时
by 伍雪颖
date_default_timezone_set('PRC’);
$timeStr = date("Y-m-d H:i:s",time());
服务器加上这句话刚好可以解决AFNetWorking解析json的问题
error domain=nscocoaerrordomain code=3840 "the operation couldn’t be completed. (cocoa error 3840.)" (json text did not start with array or object and option to allow fragments not set.) userinfo=0x196463f0 {nsdebugdescription=json text did not start with array or object and option to allow fragments not set.}
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号