|
Posted by macca on 09/28/07 19:23
> People love to bash short tags, but using <?php echo $blah; ?> every
> time you want to output a variable in a template makes for unwieldy
> template code. PHP has a shorter, more expressive, and semantically
> equal method of achieving the same; why not use it?
Short tags are turned off by default now in up to date installs of
php. This is because the short opening tag <? is used to start an xml
file, so the short tag is now deprecated in php in favour of the full
<?php which you should ALWAYS use.
Paul
Navigation:
[Reply to this message]
|