PHP PHP Basics Daily Exercise Program String Manipulation

lahiru Premasinghe
lahiru Premasinghe
1,385 Points

what is error in here

<?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" ;
?>

1 Answer

There should be a period at the end of the sentence.

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