elseif/else if
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 expression evaluates to
<?php
There may be several elseifs within the same
if statement. The first
elseif expression (if any) that evaluates to
The elseif statement is only executed if the
preceding if expression and any preceding
elseif expressions evaluated to
<?php |