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 trialAnthony Russell
5,049 PointsChallenge 3 of 3 will not accept correct answers! I have input 3 different ways I know are correct and it will not work.
I have input 3 different ways of answering question 3 of 3 and it keeps telling me to back to task two (but task two passes).
<?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
Alexander Davison
65,469 PointsMaybe getting rid of the extra newline (the "\n" part of your final string) will help out :)
I'm not sure if this will help, but you can try. If it does, good luck to you
PHP will automatically add that to the end of a string :)
That means this might work:
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullname = $firstName . ' ' . $lastname;
// Here I got rid of the extra \n after the word PHP
echo "$fullname was the original creator of PHP";
?>
Good luck! Have fun learning programming. :)
Hope this helps! ~Alex