Well, neither do I :P
For simple PHP script it’s just doesn’t look good, bloats the file and makes the code harder to read. simply use this:
<?php
if(condition) {
echo "something";
...
} else {
echo "something else";
...
}
?>
unless you mix in HTML, then it’s better to close the PHP tag and write your HTML without the need of echo
ing and escaping characters:
<?php
if(condition) {
?>
<div>
<span><?= $someVarToEcho ?></span>
...
</div>
<?php
} else {
?>
<div>
<p>Something else</p>
</div>
<?php } //endif ?>
Also I prefer the use of: ([link](http://php.net/manual/en/control-structures.alternative-syntax.php))
```php
<?php if(condition): ?>
...
<?php else: ?>
...
<?php endif; ?>
this makes the code quite a bit more readable