PHP PHP Basics Daily Exercise Program String Manipulation

Kevin Silvestre
Kevin Silvestre
PHP Development Techdegree Student 2,945 Points

I am getting a Bummer , saying "I do not see a period for this challenge". My code is displaying what is asking me to.

I want to make sure if this is a bug or if there is something I am missing. But according to the prompt for the challenge, all I need to do is display " Rasmus Lerdorf was the original creator of PHP" , and I am doing so.

So I am not sure what the "I do not see a period " bummer message is referring to"

index.php
<?php

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

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

?>

1 Answer

Steven Parker
Steven Parker
203,731 Points

The instructions say the challenge is looking for this particular output:
Rasmus Lerdorf was the original creator of PHP.

Note that the sample sentence ends with a period. The code above prints a similar sentence but without the period at the end.

Kevin Silvestre
Kevin Silvestre
PHP Development Techdegree Student 2,945 Points

Thank you. I was so frustrated. I guess I have to take the prompts quite literally.