How to get list of functions that are declared in a php file
If you're not worried about catching some commented out ones, this might be the simplest way:
preg_match_all('/function (\w+)/', file_get_contents(__FILE__), $m); var_dump($m[1]);