One of the PHP functions that I like to use is the if-type operator of the colon (I don't know what it actually called.)
<?php if(something):?> <html stuff> <?php endif;?>
But I recently tried to do this with a few cases:
<?php if(something):?> <html stuff> <?php else if(something):?> <html stuff> <?php endif;?>
And I get an error in the third line ( else if ):
Unexpected T_IF
Is it possible to do if-else if so?
David source share