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