Well the question is self explanatory.
In PHP when do I use the if/endif
notation instead of the standard if(something){}
notation?
Example:
<?php if($a == 5): ?>
A is equal to 5
<?php endif; ?>
Versus:
<?php if($a == 5){ ?>
A is equal to 5
<?php } ?>