简单教程
提交运行
代码编辑器:
<?php $t = date( "H" ); if ($t < "10" ) { echo "Have a good morning!"; } elseif ( $t < "20" ) { echo "Have a good day!"; } else { echo "Have a good night!"; } echo '<p>PHP 基础教程 - 简单教程(www.twle.cn)</p>';
运行结果: