Jump to content
Larry Ullman's Book Forums

Might Help Someone With Single Vs Double Quotes


Recommended Posts

I'm probably the only one in the world who has to have this kind of break-down to fully understand something. But maybe there's another old fart out there who can use it. (from chapter 2)

 

<?php

 

$blue_with_yellow /*the variable*/ = "green" /*the value*/;

 

print '<h1> Mixing blue with yellow yields $blue_with_yellow</h1>' //single quotes

 

?>

 

 

<?php

 

$blue_with_yellow /*the variable*/ = "green!" /*the value*/;

 

print  "<h1> Mixing blue with yellow yields $blue_with_yellow</h1>" //double quotes

 

?>

Link to comment
Share on other sites

 

I'm probably the only one in the world who has to have this kind of break-down to fully understand something. But maybe there's another old fart out there who can use it. (from chapter 2)
 
(Just realized I posted this in the wrong forum. I'm using the non-MySQL book.)
Link to comment
Share on other sites

 Share

×
×
  • Create New...