|
|
|
|
|
by apocalyptic0n3
1133 days ago
|
|
JSDoc's PHP equivalent is phpDoc. It's just a way to document things and both are third party libraries that have industry-wide adoption. What you're thinking of in PHP is not a comment. It's called an Attribute, is built into PHP itself, and while it does use a comment-syntax, it's the old style that is largely unused today ("#" at the start of a line). https://www.php.net/manual/en/language.attributes.overview.p... JSDoc isn't similar at all, unless you build a compiler that does different things based on your JSDocs. |
|