Possible Duplicate:
underlying difference between elseif vs else if
What is the difference between PHP conditions else if and elseif …
<?php
....
else if($count == 4) {}
and
elseif($count == 4) {}
Is there any special case to use one or not? Thanks!!
With curly braces, it makes no difference. When using a colon to define your conditions, ‘else if’ will fail due to parse error.
See here for more details.