PHP PHP Basics Daily Exercise Program String Manipulation

alan ingram
PRO
alan ingram
Pro 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
PRO
alan ingram
Pro 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.