what is the purpose of the extra asterisks in php comments?
问题 I've (finally) been reading up on PEAR (php) coding standards. What is the purpose of commenting like this: /** * Here is my comment * I Wrote this in a haiku * But why put the stars? */ As opposed to this: /* Here is a comment No haiku or anything special, but it still works! */ 回答1: The /** stuff */ document is also referred to as DocBlock notation. It's used to document PHP functions, classes, etc. /** * A test function * * @param foo $bar * @return baz */ function test(foo $bar) { return