$t = 'Jun 19 2006 10:40:15:000AM';
$t = preg_replace('/:\d{3}/', '', $t);
echo date('Y-m-d H:i:s', strtotime($t));php的strtotime函数不能识别带毫秒的时间格式,做替换既麻烦也费时。你应该修改查询语句用convert函数直接变换出来
$t = preg_replace('/:\d{3}/', '', $t);
echo date('Y-m-d H:i:s', strtotime($t));php的strtotime函数不能识别带毫秒的时间格式,做替换既麻烦也费时。你应该修改查询语句用convert函数直接变换出来
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货