php for alternative syntax code example
Example: if php alternative syntax
<?php if ($a == 2): ?>
---do something ---
<?php elseif($a == 3): ?>
---do something else--
<?php endif; ?>
<?php if ($a == 2): ?>
---do something ---
<?php elseif($a == 3): ?>
---do something else--
<?php endif; ?>