ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
时区设置:date_default_timezone_set(‘PRC’); strtotime(): 将日期字符串转换成时间戳(如:2019-3-7),strtotime(‘2019-3-7’) time(): 当前时间戳 microtime(): 获得微秒 闰年定义:能被4整除,但不能被100整除 $start = microtime(true); php程序 $end = microtime(true); echo $end - $start; 可以计算程序的执行时间 error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); 可以屏蔽警告和提示的信息,“@”这个符号也可以屏蔽一些变量未定义的情况。