Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP PHP Basics Getting to Know PHP PHP Comments

Micah Walton
Micah Walton
4,674 Points

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,258 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.

Micah Walton
Micah Walton
4,674 Points

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