Suppose there is a input file. The file contains php class with many functions and public variable.
I need a php script that would take that input file and count how many php function are there.
This script will also print the function name like ..
public function hasMethod($method)
public function isVirtualField($field)
Can anyone post such php script to do this ?
get_class_methods()will give you all methods in a given object or class name, see PHP func refWill show you all methods of the class
Modelin fileModel.php