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

I'm showing it pass in the preview but in check work I get the 'Step 2 is no longer passing' error. I've tried both with and without concatenation on line 7.

I've also tried adding: $fullName .= " was the original creator of PHP"; echo $fullName . "\n";

also- which also passes in preview but returns the same error about Step 2

index.php
<?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

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing fine, but at some point you managed to change the variable name from $fullname to $fullName as directed by the instructions on step 2. Note the capitilazition of the "n" vs "N". Because of this, the challenge is failing. If I alter your code to use $fullname instead of $fullName, your code passes the challenge!

Good luck! :sparkles:

Oh those tiny little bugs!! Thank you. More attention to detail in the future....