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

Not sure what I am missing in combing variables here.

I need to combine the first and last name to make a full name.


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

4 Answers

The error states you are missing a space. The correct full name is 'Rasmus Lerdorf' but you have 'RasmusLerdorf'

Yes, but Iā€™m not sure how to create that space.

You can create a space with quotes ' ' with a space between. Then concatenate that with periods like you have above.

Thanks, got it.