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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...