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! While you're at it, check out some resources Treehouse students have shared here.
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 trialScott Cieslewicz
1,827 PointsPHP Basics - Challenge Task 3 of 3
Challenge Task 3 of 3 1) Use the $fullName variable 2) Display the following string to the screen. Rasmus Lerdorf was the original creator of PHP. 3) Use an escape character to add a newline to the end of the string.
Here is my code.
<?php
//Place your code below this comment $firstName = "Rasmus"; $lastName = "Lerdorf"; $fullName = "$firstName $lastName was the original creator of PHP.\n"; ?>
Why does it not work?
3 Answers
KRIS NIKOLAISEN
54,972 Points1) Don't update $fullName with the additional text. Use that variable for task 3.
2) You are not displaying the text to the screen
Scott Cieslewicz
1,827 PointsGot it. I missed 2) Display the following string to the screen.
Thanks!
Spenser Hale
20,915 PointsHey Scott
I would be good for the community for you to select a best answer, so others will know your question has been resolved.
Thanks
Scott Cieslewicz
1,827 PointsThank you!