Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP Basics Daily Exercise Program String Manipulation

Thomas Buchstab
Thomas Buchstab
14,766 Points

Code Challenge not working correctly?

Hi everybody, i stuck with this one here. Everytime when i try check my code on task 3 it's telling me that my code frome task 1 is not working anymore. Anybody help?

index.php
<?php

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

$fullname = $firstName . ' ' . $lastName;

echo "$fullname was the orginal creator of PHP" \n;
?>

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! When a challenge reports that a previous step isn't passing it's generally because you've introduced a syntax error in your code. Such is the case here. There are currently two problems with your code:

  • The newline character \n must go inside the quotation marks with the rest of your string.
  • You've misspelled the word "original" as "orginal". Double-check your spelling here.

I feel confident that you can get this working with these hints, but let me know if you're still stuck! :sparkles:

Nigel Abrasaldo
Nigel Abrasaldo
1,344 Points

Hi Jennifer, this is an off topic question but when did you get start on using on Treehouse? I saw you have an 80,000+ point which is insane.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Nigel Abrasaldo! I began on Treehouse February 1st, 2016. This can be seen by checking my profile. Simply click my picture and then "View profile" at the bottom.

Andrew Dovganyuk
Andrew Dovganyuk
10,633 Points

Hi Jennifer and two more question:

  1. How many hours a day you spend on study! I think it is crazy score for that period of time, since you start!
  2. Do you review the subjects, after a while? (I mean coming back and review video after you all ready pass the subject a week or two ago)