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 trialBobbie Wiles
562 PointsNot sure what I am missing in combing variables here.
I need to combine the first and last name to make a full name.
<?php
//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
KRIS NIKOLAISEN
54,972 PointsThe error states you are missing a space. The correct full name is 'Rasmus Lerdorf' but you have 'RasmusLerdorf'
Bobbie Wiles
562 PointsYes, but Iām not sure how to create that space.
KRIS NIKOLAISEN
54,972 PointsYou can create a space with quotes ' ' with a space between. Then concatenate that with periods like you have above.
Bobbie Wiles
562 PointsThanks, got it.