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

CANT PAS THE STAGE WHAT AM IM DOING WRONG? <h1> <?php echo $name?> </h1

<h1> <?php echo $name?> </h1>

index.php
<?php    $name="Mike";

?>

<h1> <?php echo $name;?> </h1>

2 Answers

Abe Layee
Abe Layee
8,378 Points

Try and delet one of the opening tag. Also, your code is correct but the challenge wants you to place the echo inside the first opening tag. Like this

<?php   
 $name="Mike";
 echo $name;
?>

TNX MAN FOR THE HELP