PHPIF语句。多谢

PHP求一个IF语句。谢谢。如果服务器的时间是 半夜11点到第二天6点的话显示这个a herfhttp://www.baidu.com

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

显示这个<a herf=http://www.baidu.com>百度</a>|<a herf=http://www.soso.com>soso</a>

否则显示<a herf=http://www.baidu.com rel=nofollow>百度</a>|<a herf=http://www.soso.com rel=nofollow>soso</a>

[解决办法]
if(date('H')>=23 || date('H')<=6) {
?>
<a herf=http://www.baidu.com>百度</a>|<a herf=http://www.soso.com>soso</a>
<?php
}else {
?>
<a herf=http://www.baidu.com rel=nofollow>百度</a>|<a herf=http://www.soso.com rel=nofollow>soso</a>

[解决办法]

探讨

if(date('H')>=23 || date('H')<=6) {
?>
<a herf=http://www.baidu.com>百度</a>|<a herf=http://www.soso.com>soso</a>
<?php
}else {
?>
<a herf=http://www.baidu.com rel=nofollow>百度</a>|<a herf=http://……