PHP – if Statements

If Statements allow you to trigger code if specific conditions are met.

 

<?php
$age = 20;
print “Your Age is $age”;
print “<br>”;
if ($age < 18) {
print “you too YOUNG”;
}
?>

Be the first to comment

Leave a Reply