且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 PHP 日期时间获取 unix 时间戳?

更新时间:2022-11-25 20:26:37

strtotime 成功返回时间戳,否则返回FALSE.

strtotime Returns a timestamp on success, FALSE otherwise.

 echo strtotime('2012-07-25 14:35:08' );

输出

1343219708