Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Lucas Jones1,370 Points
I'm getting the required results yet it won't let me move on.
Use the $fullname variable to display the following string to the screen. Use an escape character to add a newline to the end of the string.
'Rasmus Lerdorf was the original creator of PHP'
//My code <?php
//Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullname = $firstName . " " . $lastName; $fullname .= ' ' . 'was the original creator of php'. "\n"; echo $fullname; ?> // my results Rasmus Lerdorf was the original creator of php
Simon Coates28,694 Points
I changed the message slightly. Apart from this, you're not meant to change the value for $fullname, since it tests that this contains the correct value (sometimes the verification code just looks for specific text and sometimes it runs the thing and checks what's in your variables or output). so:
<?php //Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullname = $firstName . " " . $lastName; echo $fullname .' ' . 'was the original creator of PHP'. "\n"; ?>