我正在寻找一个可以有效地勾勒出一个类的函数或类:
class MyClass{
/*
* Perhaps include the function comments
* in the function.
*/
function mainFunction(){
//Does Something
}
function functionWithArgs($arg1,$arg2=false){
//Does Something
//The function I want will give e the arguments w/default values
}
}
是否存在一个函数或库可以让我访问有关此类的信息,甚至是文件。
前任。
get_file_outline('fileWithAboveClass.php');
或者
get_class_outline('MyClass');
有没有人知道,或者知道一种轻松写这个的方法?