How to add Comments in PHP

If you are writing a code, it is always a good habit to leave comments within your code for later review or for other programmers to see it. In PHP you can leave comments in three different ways, have a look.
PHP
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
<?php //This is single line comment # this is also a single line comment /* this will be multi line comment */ //below is a php code if($a){ print $a; }
New question is currently disabled!