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 trialCésar Noriega Mendoza
1,049 PointsStuck in this challenge, however I'm sure it is fine
<?php
//Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullName = $firstName. ' ' .$lastName; echo $fullName; $fullName = $firstName. ' ' .$lastName. ' ' . "was the original creator of PHP" . ' ' . "\n"; echo $fullName; ?>
When I check for work in the third part of this challenge, I reveive this message: Oops! It looks like task 2 is no longer passing
Then I return to second task, recheck it and the move to next task, but is the same loop>
Please check it is a problem with my answer (above) Thanks
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullName = $firstName. ' ' .$lastName;
echo $fullName;
$fullName = $firstName. ' ' .$lastName. ' ' . "was the original creator of PHP" . ' ' . "\n";
echo $fullName;
?>
2 Answers
ceriannejackson
23,759 PointsYou don't need to define $fullName a second time, you just need to use it in the echo statement. You also don't need both echo statements.
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullName = $firstName. ' ' .$lastName;
echo $fullName. ' ' . "was the original creator of PHP" . ' ' . "\n";
?>
César Noriega Mendoza
1,049 PointsI just realize my mistake. Thanks Cerianne