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 Build a Simple PHP Application Adding a Contact Form Concatentation

what am I doing wrong?

Yet again I am stuck the question is as follows:

Remove the four underscores in the echo command and concatenate the remaining text with the variable $fullName.

The text looks like this:

echo "The designer at Shirts 4 Mike shirts is named ____";

And my answer was this:

echo "The designer at Shirts 4 Mike shirts is " . $fullName;

Please help me to understand what I'm doing wrong.

concatenation.php
<?php

$firstName = "Mike";
$middleName = "the";



echo "The designer at Shirts 4 Mike shirts is named ____";

?>

1 Answer

Samuel Webb
Samuel Webb
25,370 Points

The problem is that you removed the word "named". It should be:

echo  "The designer at Shirts 4 Mike shirts is named " . $fullName;

Lol, you've got to be kidding me? they docked me for that? Lol I don't think I like PHP lol. Thanks bud I will be more careful moving forward