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 Data & Structure

PHP Data Structure Quiz Error

On the Which of the following is a valid comment? the valid answer should be // This is a comment and not Both Of These Are Valid.

/*
* This is a Comment
* With Multiple Lines
*\

This is not a valid PHP multi-line comment.

2 Answers

Good catch. It was a typo in the quiz answer. All fixed up!

// Comment

/*
* Also Valid Comment.
*/

I'm just stating the error. The multi-line comment on the quiz ends with a backslash \ and not a slash /, making it an invalid php comment.