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

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
231,261 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