Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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