Extract function names and directories from php files

I need a script that extracts function names from php files together with their location (path and file in which they are defined).

The php files are located in several directories under a base directory.

Ideally the output should be something like:

"Path/FileName/FunctionName" for a function "FunctionName" which is defined in file "FileName.php" and FileName.php is located in Path.

Should be pretty simple, but I haven't done any scripting for years, so hopefully somebody can help. Any scripting language is fine.

find /path/to/folder -name '*.php' |
        xargs egrep -o 'function[ \t][ \t]*[a-zA-Z_]*'

Prints lines like

/home/mec/public_html/noweb/navbar.php:function rowclass

Perfect! Thanks a lot.