Home > Backend Development > PHP Tutorial > PHPIF语句。多谢

PHPIF语句。多谢

WBOY
Release: 2016-06-13 10:15:42
Original
800 people have browsed it

PHP求一个IF语句。谢谢。
如果服务器的时间是 半夜11点到第二天6点的话

显示这个百度|soso

否则显示百度|soso

------解决方案--------------------
if(date('H')>=23 || date('H')?>
百度|soso
}else {
?>
百度|soso

------解决方案--------------------

探讨

if(date('H')>=23 || date('H')?>
百度|soso
}else {
?>
百度|
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template