Output "I watch TV" if the current time is less than 20, and "I play a game" otherwise:
<?php
$t = date("H");
if ($t < "18") {
	echo "I watch TV";
} else {
	echo "I play a game";
}
?>
by Mariam Gelkhauri
2 years ago
PHP
Object Oriented PHP Tutorial
0
Pro tip: use ```triple backticks around text``` to write in code fences