这是我的PHP代码:
echo '<br />1. '.$w_time_no;
echo '<br />2. '.strtotime($w_time_no);
echo '<br />3. '.date('G:i', strtotime($w_time_no));
这就是我得到的:
1. 0000-00-00 22:00:00
2.
3. 2:00
为什么 strtotime() 自己什么也不输出?服务器设置有问题吗?服务器:Apache/2.2.11 (Win32),PHP 5.2.10,MySQL 客户端版本:5.0.51a。