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 3

Not sure why the third step is not passing. I am supposed to take the variable $fullname which is a concate of $firstName and $lastName variables and add an additional string "was the original creator of PHP." with a line escape and display the final variable $fullname. What am I missing?

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;

?>

1 Answer

Patrick Masters
Patrick Masters
15,776 Points

Hey this works fine - only thing is you need to add a space before the " was the original..."

I'd send a screenshot but you can test it yourself on something like: http://phptester.net

Thanks Patrick, I have tried multiple ways to get this to pass and I could have sworn I accounted for that space, maybe not just in the posted code sample. It is always the little things.