Home  >  Article  >  php教程  >  php实现比较两个字符串日期大小的方法

php实现比较两个字符串日期大小的方法

PHP中文网
PHP中文网Original
2016-05-20 12:58:121954browse

跳至

 $to) {
 return true;
 } else {
 return false;
 } 
} 
?>
$date1 = "2009-10-13";
$date= mktime(0, 0, 0, date("m", strtotime($date1)), date("d", strtotime($date1)), date("Y", strtotime($date1)));

                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn