Home >php教程 >php手册 >php判断时间提示信息

php判断时间提示信息

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:44:48875browse

 

郑敏

date_default_timezone_set('PRC');//判断时区

echo date("H");

       if(date("H")>=22 || date("H")

              echo '现在是晚上,要休息';

       }

       else

       echo '工作时间开始了'

?>

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