For example, take the if control construct.
There is such a use case:
<?php if ( $a ) : ?> Блаблабла <?php endif; ?> And there is this:
<?php if ( $a ) { ?> Блаблабла <?php } ?> Fiddle: sandbox.onlinephpfunctions.com .
Are there any differences between them?
<?phptag is not necessary to write, you can simply<?, then the sample code is even shorter:<? if ($a) : ?> .... <? endif; ?><? if ($a) : ?> .... <? endif; ?><? if ($a) : ?> .... <? endif; ?>- Vasily Barbashev