I've been working with PHP
code that generates HTML without any templating, and it's quite spaghetti and difficult to read with the way they've structured it. One way to drastically improve following the flow I've noticed is to use :
endif
instead of { }
blocks in some cases to increase readability. (See http://php.net/manual/en/control-structures.alternative-syntax.php)
- Is this portable?
- Is this standard?
- Is this slower in any significant way (I understand it takes more chars)
Cheers!