IF statement in PHP

The below example will show you the use of an IF statement in PHP.

<!DOCTYPE html>

$t = date(“H”);

if ($t < “20”) {
echo “Have a good day!”;



Code Flavour is a news site with a focus on coding. Our aim is deliver news over a range of categories which will be insightful and beneficial to readers that are interesting in code development.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *