I have two questions actually:
-
For some functions I am posting forms to them, can I mention them as
@params
in comments or what:/* some descriptions * * @param string userName */ public function add(){ $userName = $_POST['user'] ...... }
-
From some function I am returning data as JSON, how to mention JSON as return type and format:
/* some descriptions * * @return JSON [{id, name,...}] */