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 trialAlex Bauer
9,426 PointsWhy does it tell me that I'm not displaying the correct string?
The step specifically asks me to display the string with an \n at the end of the code. I tried concatinating the strings and I get an error. I've tried multiple ways but none of which work.
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullName = $firstName . ' ' . $lastName;
echo $fullName . ' ' . 'was the origin creator of PHP.' . "\n";
?>
1 Answer
Steven Parker
231,271 PointsThe instructions asked you to display "Rasmus Lerdorf was the original creator of PHP."
But it looks like you have "origin" instead of "originβal".
Alex Bauer
9,426 Pointsoh okay ty!
Alex Bauer
9,426 PointsI just tried it and it worked lol
Alex Bauer
9,426 PointsAlex Bauer
9,426 PointsIt says I can't change the $lastname variable, and it needs a space between the string and the full name.