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