trungnghia
New Member
In a PHP project, even when front controller logic is used for the main application, there can be many stand-alone scripts, ajax snippets and so on.Is there a standardized way - either PHPDoc or something else - to define in the first comment block of the script what GET and/or POST parameters the script will accept / require and of which type they are?I usually help myself by just adding \[code\]@param\[/code\]s as if the file were a function, and a \[code\]@return\[/code\] explanation for what the script does and returns, but maybe there is a more specialized way I do not know of.