How can I extract all function names from a PHP file?
The file has many functions that look more or less like the following. Is a regular expression the best way to
You can write another PHP file to grep for that, or if you have Linux or Mac OS X, you can use something like:
grep -P "function\s+\w" myfile.php