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!
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
Annalyn AguilarCourses Plus Student 150 Points
<?php echo $name ?> Will print the name right? why it says BUMMER when I check my work?
<?php $name = "Mike"; ?> <?php echo $name ?>
Ryan FieldCourses Plus Student 21,242 Points
Hi, Annalyn. While what you have will work technically, the challenge wants you to put everything inside one php block. In addition, while you can omit semicolons for single-line blocks of PHP, it's always a good idea to include them so you don't run into errors if you decide to add on more code later.
Jonathan GrieveTreehouse Moderator 91,250 Points
I can't think of a reason based on what I've learned today. Seems odd.
Is it looking for a different variable name of a different string? The code challenges look for something very specific. :-)