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

Stuck on a code challenge. Please help again lol

Create a variable called fullName and assign it a value equal to the concatenation of the firstName variable, a space, the middleName variable, a space, and the lastName variable.

What am I doing wrong? Below is my answer to this task but it keeps coming up telling me " Bummer! $fullName is set, but it's not the concatenation of $firstName, $middleName, and $lastName with spaces between them"

$firstName = "Mike"; $middleName = "the"; $lastName = "Frog"; $fullName = $firstName. " ".$middleName. " ".lastName;"\n";

Can someone please point out where I have gone off course?

Thanks Shannon

1 Answer

oops I have seen my problem. Thanks!