Generally we add the comment's on classes and function to explore the class and its functions.
LIKE:
/**
* some descriptions
* @params
*/
class NewClass {
/**
* method description
* @params
*/
public function first(){
}
/**
* method description
* @params
*/
public function second(){
}
}
I want to retrieve the comments on the PHP CLASS and RESPECTIVE CLASS FUNCTIONS.
Can anyone help me??
The required output is::
array(0=>array( 'type'=>'class','comment'=>"/*** some descriptions* @params*/"),
1=> array( 'type'=>'method','comment'=>"/*** method description* @params*/"),
2=> array( 'type'=>'method','comment'=>"/*** method description* @params*/")
);