Jump to content

else if vs elseif


Liquid Fire

Recommended Posts

Just a coding style.

 

Ever heard of the manual? And I quote....

 

In PHP, you can also write 'else if' (in two words) and the behavior would be identical to the one of 'elseif' (in a single word). The syntactic meaning is slightly different (if you're familiar with C, this is the same behavior) but the bottom line is that both would result in exactly the same behavior.
Link to comment
https://forums.phpfreaks.com/topic/65062-else-if-vs-elseif/#findComment-324692
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.