r/PHPhelp • • Dec 16 '25

Solved Difference between comments

JUst wondering, what is the difference between

/* */

and

/** */

10 Upvotes

21 comments sorted by

View all comments

Show parent comment

4

u/Ill_Store5106 Dec 17 '25

The parser actually does differentiate between `/*` and `/**` for the purposes of reflection. See: https://www.php.net/manual/en/reflectionclass.getdoccomment.php

2

u/tom_swiss Dec 17 '25

Fair! Thanks for the correction.