<?php $t=date("50"); if ($t<"10") { echo "Have a good morning!"; } elseif ($t<"20") { echo "Have a good day!"; } else { echo "Have a good night!"; } ?> <?php$num=100; switch ($num) { case 10: echo("好"); break; case 20: echo("很好"); break; default: echo("不好"); break; } ?>
时间: 2024-10-16 23:51:48