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 trialSérgio Leal
7,803 PointsPHP 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
Hampton Paulk
5,093 PointsGood catch. It was a typo in the quiz answer. All fixed up!
miguelcastro2
Courses Plus Student 6,573 Points// Comment
/*
* Also Valid Comment.
*/
Sérgio Leal
7,803 PointsI'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.