C casey w New member May 14, 2009 #1 To read the current hour (in 24 hour format), you can use the following in built-in function: date('H'). Use "if/else" statements to determine which greeting message to show.
To read the current hour (in 24 hour format), you can use the following in built-in function: date('H'). Use "if/else" statements to determine which greeting message to show.
D DzSoundNirvana New member May 14, 2009 #2 $_date = date('H'); if($_date == "00") { echo "Good morning it is date('his'); } else { echo "It is date('his); }
$_date = date('H'); if($_date == "00") { echo "Good morning it is date('his'); } else { echo "It is date('his); }