According to the PSR2 coding standard:
The keyword
elseifSHOULD be used instead ofelse ifso that all control keywords look like single words.
if ($expr1) {
...
} else if ($expr2) {
...
} else {...}
if ($expr1) {
...
} elseif ($expr2) {
...
} else {...}