Is there a way to generate a list of all the functions being used by a piece of code?
With Java it is easy as you can just copy the import statements at the top of the code. With PHP, as you don't need to import the library, it is more difficult.
I'm after a quick solution, if there is one, for documentation purposes.