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 (Retired) PHP Data & Structure PHP Variables

Answer not being accepted

Im on Challenge Task 2 of 2 Now echo Mike's Name To The Screen.

I wrote

      <?php

      $name = "Mike";
      echo $name;

      ?>

and it keeps telling me that its wrong

index.php
<?php

$name = "Mike";
echo $name;

?>

3 Answers

Shawn Flanigan
PLUS
Shawn Flanigan
Courses Plus Student 15,815 Points

Paula,

I just checked the challenge, and your code seems to be working. What error is it giving you?

If you're still receiving this error, maybe try refreshing your browser or trying the quiz in a different browser. Not sure what would be causing this to fail.

Hey Shawn, thank you!

Now it went through. Maybe it was a cookie problem.

aspecialsomebody
aspecialsomebody
1,147 Points

I was having the same issue. I tried over and over. My answer was the same. I removed the whitespace in my answer and it worked. Maybe a glitch?

Imon Dela Rosa
Imon Dela Rosa
7,383 Points

try this! in one line: <?php $name = "Mike"; echo $name; ?>