Archive for category PHP
PHP closing tags
A little something I found out recently :
when you’re writing a PHP script, you don’t need to end your file with closing tags. In fact, this is better because it removes the chances of having troubles with invisible spaces or line endings.
so, not this:
<?php
echo “Very nice!”;
//closing tag
?>
But rather just this
<?php
echo “this is even better!”;
//no closing tag
Recent Comments