Usage of single & double quotes in PHP

Source code :

<?php

$var = "aroliant";
print('My $var will not print!'); //Outputs -> My $var will not print!

print("My $var will print! \n"); //Outputs -> My aroliant will not print!

?>

Output :

My $var will not print!
My aroliant will print!

Output :


                

Comments :