<?php
if ($a > $b) {
echo "a is bigger than b";
} else {
echo "a is NOT bigger than b";
}
?>
The else statement is only executed if the if expression evaluated to FALSE, and if there were any elseif expressions - only if they evaluated to FALSE as well (see elseif).
Thursday, January 24, 2008
Control Structures in PHP: ELSE
Etiquetas:
Control Structures
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment