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;
?>
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment