// why does this not work PHP in XAMMP stack
// error: "strtotime is not defined"

$date2 = strtotime('2010-10-01');
有帮助吗?

解决方案

根据 http://us3.php.net/manual/en /calendar.installation.php

  

要获得这些功能的工作,你   要编译PHP   --enable日历。

     

PHP的Windows版本已经   内置该扩展支持。   您无需加载任何附加   为了利用这些扩展   功能

或在OS X:

  

须藤端口安装的php5-日历

如果做不到这一点,尝试寻找系统的软件包管理器PHP5日历。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top