submitted by: Guest
PHP: if else example
basic example of an if then else control structure.
code snippet:
<?php
$a = 3;
if ($a <= 5) {
echo "value is smaller or equal to 5";
} else {
echo "value is greater than 5";
}
?>
sample output:
value is smaller or equal to 5



