saige0 Posted December 29, 2011 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 Link to comment Share on other sites More sharing options...
saige0 Posted December 29, 2011 Author 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. Link to comment Share on other sites More sharing options...
Larry Posted December 30, 2011 Share Posted December 30, 2011 That would do it. Sometimes it's just a matter of fresh eyes, even if they are yours. Link to comment Share on other sites More sharing options...
Recommended Posts