PHP PHP Basics Daily Exercise Program String Manipulation

I can't move to the next stage because it says my code is incorrect

I can't move to the next stage because it says my code is incorrect.

Though I'm absolutely sure the code is correct.

Please help me check and tell me what to do to move on.

Please find below the code.

<?php

//Place your code below this comment $firstName = "Rasmus"; $lastName = "Lerdorf";

$fullName = $firstName.' '.$lastName;

echo $fullName.' was the original creator of PHP'."\n";

?>

index.php
<?php

//Place your code below this comment
$firstName = "Rasmus";
$lastName = "Lerdorf";

$fullName = $firstName.' '.$lastName;

echo $fullName.' was the original creator of PHP'."\n";

?>

2 Answers

joelearner
joelearner
37,579 Points

Hi Olukayode,

You are definitely very close. I got error messages when I tried this challenge and one told me I need to have an extra space with the "." character. Also, double quotes are required to surround the entire sentence and the new line character. So, the small changes here will work:

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

Cheers!

I was eventually able to fix it.

Thanks joelearner