"else if" is two seperate commands, whereas "elseif" is a special construct in php which does the same thing using only one command.
"else if" basically means this
PHP Code:
if ($condition1) { // ... } else { if ($condition2) { // ... } }
Whereas the elseif key word makes it slightly more condensed
PHP Code:
if ($condition1) { // ... } elseif ($condition2) { // ... }
But of course, the end result is the same.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|