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 @param
s as if the file were a function, and a @return
explanation for what the script does and returns, but maybe there is a more specialized way I do not know of.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…