Quotes

"Double Quotes" will interpolate any variables.

 

'Single quotes' will literally print the contents.

 

<?php

	$myVar = "Jimi Hendrix" ;

	echo ("$myVar played a mean guitar!<br>") ;	//interpolated

	echo ('$myVar played a mean guitar!') ;	//literal

?>

Displays:

Jimi Hendrix played a mean guitar!
$myVar played a mean guitar!

Leave a Reply