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 trialVince Roszak
588 PointsCan not figure out what is wrong with my code
It saying i need to add a space between the first and last name but I dont know how to do that.
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullName .= $firstName;
$fullName .= $lastName;
?>
2 Answers
Angela Visnesky
20,927 Points$fullName = $firstName . " ". $lastName;
I hope this helps!
Vince Roszak
588 Pointsi just tried doing that but it still says I need to add a space
Chris Gauthier
Courses Plus Student 6,434 PointsThe code I pasted in here works fine for me in the teamtreehouse compiler. Can you post your code as well as the error you are getting so I can help more?
Chris Gauthier
Courses Plus Student 6,434 PointsChris Gauthier
Courses Plus Student 6,434 PointsTry this:
You must concatinate the two variables into the fullName variable as above.
I tested this out and it worked fine!