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 trialRobert Tardy
553 PointsHow do I make "Mike" appear on the screen after setting it equal to $name ?
What else should go with <?php echo $name ?>
<?php
$name = "Mike";
?>
<?php echo $name ?>
1 Answer
Jeff Lemay
14,268 PointsWhat you have will work in reality, but for the challenge they want you to have all the php inside one set of php tags. You're also missing a semi-colon after the echo statement (not necessary in this case but it's always good to stick with best practice).
<?php
$name = "Mike";
echo $name;
?>