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 trial

PHP PHP Basics Daily Exercise Program String Manipulation

I have parsed the code for the final task, it keeps telling me that the second task is no longer passing.

The above explains it all:

It keeps sending me back a few steps repeatedly.

index.php
<?php

//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullname = "$firstName " . "$lastName ";
$fullname .= 'was the original creator of PHP';
echo $fullname ;
?>

1 Answer

Joel Bardsley
Joel Bardsley
31,249 Points

Hi Cory, I fell victim to the same thing when I first did this challenge. The issue here is that you created the $fullname variable in the task two, but now you've modified it, so now it no longer passes task two.

Undo any changes you've made to the $fullname variable and instead you just need to echo "$fullname was the original creator..." and don't forget to include the escape character for adding a newline at the end of the string!