If-Else Construct in PHP
Now we will study a special
if-else construct, which allows executing
some code depending on the fulfillment
of a certain condition. The syntax of the construct
looks like this:
<?php
if (comparison operation) {
/*
the code located here will execute,
if the result of the comparison operation is true
*/
} else {
/*
the code located here will execute,
if the result of the comparison operation is false
*/
}
?>