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

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