i've few PHP files and i want to read but not execute these files to fetch function list from them, i can use include
and then get_class_methods
by calling a class but i don't want to do that, i simply just want to read php file and extract function list, i tried some RegEx patterns but it also matches in strings which i dont want.
I used following RegEx pattern but dont want to use it though it dont seems that the solution would be RegEx:
preg_match_all("%function ([^(\s]+)%", $source, $func);`