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 trialPhilipp Soldunov
993 PointsWhat do I do wrong in the PHP basics Strings code task 3?
Tried this:
<?php
//Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullname = "$firstName $lastName"; $fullname = "$fullname" . " was the original creator of PHP \n"; echo $fullname; ?>
and this:
<?php
//Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullname = "$firstName $lastName"; echo "$fullname was the original creator of PHP \n"; ?>
Doesnt work!
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullname = "$firstName $lastName";
echo "$fullname was the original creator of PHP \n";
?>
1 Answer
Tanja Schmidt
11,798 PointsTry to remove the whitespace between PHP and \n and your code should pass the challenge.
echo "$fullname was the original creator of PHP\n";
Happy Coding! :)
Philipp Soldunov
993 PointsPhilipp Soldunov
993 PointsThank you, Tanja!
Tanja Schmidt
11,798 PointsTanja Schmidt
11,798 PointsGlad I could help!