From time to time, I get bloated, undocumented, erroneous PHP code to fix. I have several tools that I use to fix such code as quickly as possible.
One thing that I donβt know how to do, occasionally makes me sad to look for where the function is located (in which file it is defined). Please note: I do not want to know where the function is called from.
For example, I would like to be able to do this:
function foo(){
echo 'bar';
}
.
where_is_function('foo');
include('file1.php');
echo where_is_function('foo');
source
share