Re: How to use Else and Else If Statement in PHP?
Instructions after the else are executed if the if expression is FALSE, and if not followed by the expression elseif - only if they evaluated to FALSE. elseif, as its name suggests, is a combination of if and else. Like else, it allows to execute a statement after an if in case the original if expression evaluates to FALSE. But, unlike else, it will execute the instruction that if the elseif conditional expression evaluates to TRUE.
"When they give you ruled paper, write the other way..." J.R.J.
Bookmarks