elseif, as its name suggests, is a combination of if and else. Like else, it extends an if statement to execute a different statement in case the original if the expression evaluates to FALSE
. However, unlike else, it will execute that alternative expression only if the elseif conditional expression evaluates to TRUE
. For example, the following code would display a is bigger than b, an equal to b or a is smaller than b. php.elseif/else