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

Shin Mahilum
Shin Mahilum
958 Points

Wrong answer?

"Tags in a docblock start with which character?" This question was asked in the quiz, and my answer is asterisk (), but it says that may answer is wrong. So i reviewed the video, but the video clearly says that in docblock it starts with the character asterisk (). Can someone explain this?

1 Answer

andren
andren
28,558 Points

Lines in a docblock starts with an asterisk, but tags does not. Tags weren't actually explained much at all in the video so it's understandable that you would be confused.

Tags allow you to specify various things like the author of an element, and other meta information like what parameters a function takes and what it returns. Tags start with the @ symbol. You can read more about them here.

Shin Mahilum
Shin Mahilum
958 Points

ouh..... thank you very much..I thought the video was referring the asterisk as tags.. thank you very much, this was really helpful...