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

String manipulation Code challenge - "Task 1 is no longer passing" ?

There are 3 tasks/parts to this code challenge. I'm able to complete task 1 and task 2, but when I add my code to finish task 3, I get the error message "Task 1 is no longer passing"

I do not understand why I'm receiving this error message and why the system doesn't consider my code to correctly finish Task 3.

Thanks!

index.php
<?php

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

3 Answers

Sam Baines
Sam Baines
4,315 Points

Hi - you are not the only one that has come across this issue - I completed the challenge using the following code:

<?php

//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullname = $firstName . ' ' . $lastName;

echo $fullname . ' was the original creator of PHP' . "\n";
?>

Not sure and in theory the .= addition to a string should work but maybe it doesnt for this challenge.

Thank you! :)

Rajeeve Narayanan
Rajeeve Narayanan
3,608 Points

was haveing the same problem, Thank you!!

Thank you very much