PHP Best Practices - 3 : Use White Space and Indentation

PHP parser ignores white space and indentation but you should always put some white space and use indentation to make your code more readable and easy to debug. Have a look at these:

1. <?php echo "My name is John"; ?>
2. <?php function shamim($value){echo "My name is" . $value;}?>

And now have a look at this:

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

2. <?php
   function shamim($value)
     {
          echo "My name is" . $value;
     }
?>