Code Snippets Php






Print "The time is: ";
$hour = date('H'); //hours.
$minute = date('i'); //minutes.
$seconds = date('s'); //seconds
$time = "$hour : $minute : $seconds"; //put them together
Print $time
?>