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 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.