Php Basic Syntax


  1. Php code starts with <?php and ends with ?>
  2. You can comment out PHP with  //content goes here  or   /* content goes here */
  3. In Php coding you should always use single quote ( ' ) instead of dubble quote ( " )

for example:

 <?php echo 'Hello World' ;?> 
 <?php echo "Hello World" ;?>