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 Build a Simple PHP Application Getting Started with PHP A Simple PHP Example

Devin Rice
Devin Rice
8,472 Points

Bug, as the html <php></php> should not be inside a php block of code.

The question asks what code is needed in a PHP block of code.

Treehouse gives the correct answer as "

<?php <php> ... </php> ?>
```"

This is incorrect, as you do not need the html tags 

<php> </php> ```inside PHP blocks of code.

I was told by technical support to post this in the forum.

1 Answer

I think the way they have written is incorrect but I do know what the answer is trying to say...

<?php <php>..</php>... ?>

<php>...</php> is actually php code i.e. $test = 234; or a loop or anything like that.