PHP Best Practices - 2 : Use <?php...?>

PHP programmers often use php short tag while scripting. If you do this it can make a problem if short open tag is not enabled in your php configuration. It's the best practice to always use the full tag (<?php...?>).

Instead of doing this:

<?
   echo "My name is John";
?>

or

<?= "My name is John"; ?>

or

<% echo "My name is John"%>

Write this way:

<?php 
      echo "My name is John";
?>