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 Getting to Know PHP PHP Comments

This quiz has 3 out of 5 questions wrong maybe.

One of the questions ask what tags start a docblock. From the video the answer should be /* right? Yet that's not given as an option. Answering * which should be the individual lines as the correct answer is wrong. So I'm not sure what is supposed to be the correct answer here.

The question that has "This entire section is considered a comment block because of the special characters surrounding it etc" should be /* right? Yet putting that in gives a wrong answer.

Finally, I watched the video twice. Using # as a single line comment is never talked about in the video so naturally anyone that doesn't know about php would click that first. But, it is a valid comment you would just have to find that elsewhere on the web and not from this video.

But, maybe I'm missing things. Are 3 out of 5 questions errors in this? Or am I missing something and these are not errors?

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

i didn't watch the vids but the tags in the dockblock answer is ampersand. the 2nd question you mention has two blocks, /* goes in the first one and */ goes in the second.

I did try answering /* */ as well to see if it would take it and that also came out wrong.