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 PHP Basics Daily Exercise Program String Manipulation

alan ingram
PLUS
alan ingram
Courses Plus Student 3,979 Points

Tried every concatenation possible

I have tried each concatenation method shown in the videos yet I seem to be missing something.

index.php
<?php

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

?>

2 Answers

The instructions for task 3 are to display to the screen. If you update $fullName in task 3 you will fail task 2.

alan ingram
PLUS
alan ingram
Courses Plus Student 3,979 Points

Given the section of coding and the build on practice I thought it was making me concatenate various ways. Why wouldnt the exercise step just say "print to screen". A lot of the wording in a bunch of these exercises to me, maybe not to others, are just horribly worded. I struggle the most understanding the directions or lack of directions than the exercises themselves. I guess I was figuring by display meaning when you test your code to see if it works, not that display was meaning to actually print to screen. If it said print to screen then it would be clearer you want an echo/print action.