I just discovered the get_defined_functions() function in PHP, I was checking it out, it list all the functions.
It in addition to php’s built in functions, it list 176 function I have made for my site.
I have a question about it, are all the listed functions from this being loaded, like taking up resources or is it just showing they are available if I need them?
If it just shows all functions available, is there a way to list all that are being used?
print_r(get_defined_functions());
From the PHP docs:
CliffNotes version: it gives ALL available functions in a multi-dimensional array, regardless of whether or not they’ve been used.
As to the second part of your question, I am unaware of any built-in PHP function that will return all used functions.