saige0 0 Posted December 29, 2011 Report Share Posted December 29, 2011 Yup, already ran into trouble. Page Chapter 2, Page 46,47 Here's my script: <?php // Script 2.4 - quotes.php //single or double quotation marks won't matter here: $first_name = 'Saige'; $last_name = "The Powerful"; //single or double quotation marks DOES matter here: $name1 '$first_name $last_name'; <----- Line 16 $name2 "$first_name $last_name"; //single or double quotation marks DOES matter here: print "<h1>Double Quotes</h1> <p>name1 is $name1 <br /> name2 is $name2</p>"; print '<h1>Single Quotes</h1> <p>name1 is $name1 <br /> name2 is $name2 </p>' ?> Here's my error message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /quotes.php on line 16 Quote Link to post Share on other sites
saige0 0 Posted December 29, 2011 Author Report Share Posted December 29, 2011 Now that I see it in a different font I can see that I forgot the = sign on those two lines. Sorry about that. Quote Link to post Share on other sites
Larry 433 Posted December 30, 2011 Report Share Posted December 30, 2011 That would do it. Sometimes it's just a matter of fresh eyes, even if they are yours. Quote Link to post Share on other sites
Recommended Posts
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.