Welcome to the Treehouse Community
Looking to learn something new?
String Manipulation - Task 3
I'm not sure why this isn't parsing - any suggestions?
<?php //Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullName = $firstName . ' ' . $lastName; echo $fullName . "/n"; ?>
Shayne Laufenberg4,213 Points
Everything is correct except you ended up using "/n" instead of "\n" which will end up displaying that as a string to the output. (Note: Also will display it as a string if its not in double quotes for new lines)
Your outcome: "Rasmus Lerdorf was the original creator of PHP./n"
Expected outcome: "Rasmus Lerdorf was the original creator of PHP."
<?php // Users First Name // $firstName = "Rasmus"; // Users Last Name // $lastName = "Lerdorf"; // Users Full Name // $fullName = $firstName . " " . $lastName; // Display Outcome // echo $fullName. " was the original creator of PHP.\n"; ?>