PHP PHP Basics Getting to Know PHP PHP Comments

Donnie Driskell
Donnie Driskell
2,243 Points

https://teamtreehouse.com/library/php-basics-2/getting-to-know-php/php-comments

The Question 4 of 5 ask: /*

  • This question is formatted as a DocBlock.
  • Which character would replace the double question marks (??) in the author tag below? *
  • ??author Alena Holligan */

It seems that actually none of the CHOICES are correct as there is already an * before the two ?? ( * ?? )

Shouldn't the question be written as: SEE the ??author Alena Holligan /*

  • This question is formatted as a DocBlock.
  • Which character would replace the double question marks (??) in the author tag below? * ??author Alena Holligan */

And the answer would be (*)

Before

  • ??author Alena Holligan Revised ??author Alena Holligan The ?? should be replaced with an *

2 Answers

Steven Parker
Steven Parker
203,988 Points

The correct answer is shown at 4:53 in the PHP Comments video.

Note that the answer has to do with marking the author information within the comment, and does not have anything to do with enclosing the comment.

Donnie Driskell
Donnie Driskell
2,243 Points

Steven, thanks again. Wow, it is amazing how easy it is to miss a detail like that.

Donnie