Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php strotime()在正确的日期格式字符串上返回false?_Php - Fatal编程技术网

Php strotime()在正确的日期格式字符串上返回false?

Php strotime()在正确的日期格式字符串上返回false?,php,Php,尝试使用我使用过无数次的技术格式化日期字符串,突然返回false(PHP5)。有人碰到这个吗 //$new_date = June 14,2010 echo $new_date; $new_date = date("F j, Y", strtotime($new_date)); //returns the infamous December 31, 1969 because strototime() is returning false? 取自 strotime应在您指定的日期内有效。确保函数

尝试使用我使用过无数次的技术格式化日期字符串,突然返回false(PHP5)。有人碰到这个吗

//$new_date = June 14,2010
echo $new_date;
$new_date = date("F j, Y", strtotime($new_date));
//returns the infamous December 31, 1969 because strototime() is returning false?
取自


strotime
应在您指定的日期内有效。确保函数中的日期格式为md,y

无法复制。什么操作系统和区域设置?无法复制。确切地说,您使用的是哪个PHP版本?您确定原始的
$new\u date
具有该值吗?复制以前关于无法复制的注释。取消注释代码中的第一行。以前复制的复制关于不被复制。即使是重大的区域设置调整也不会使其失去正常。可能是实际字符串中隐藏的部分?(不可打印字符,仅执行echo时浏览器中不显示html标记)
Type of string               |           REGEX                  |   EXAMPLE
Textual month, day and year  | m ([ .\t-])* dd [,.stndrh\t ]+ y | "July 1st, 2008", "April 17, 1790", "May.9,78"