don't, just don't

don't use short open tags: <? ?>; always use the long form of the PHP open tag (<?php ?>)

don't use print; use echo

<?
// bad
print $var;
?>
<?php
// good
echo $var;
?>
View this page on GitHub.
Posted .

Comments

Leave a Reply