PHP PHP Basics Daily Exercise Program String Manipulation

ella ukpo
ella ukpo
369 Points

String Manipulation

1) Use the $fullName variable

2) Display the following string to the screen.

Rasmus Lerdorf was the original creator of PHP.

3) Use an escape character to add a newline to the end of the string.


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


1 Answer

Eric Drake
Eric Drake
Pro Student 6,229 Points


You are on the right track. The only part missing is displaying the string to the screen. In place of the last line in your code, try this:

echo $firstName  . $lastName  . "was the original creator of PHP.\n";