Possible Duplicate:
How to find out where a function is defined?
get filename of extended class
Working on non OO codes in PHP, I sometimes find myself digging through code to find something as simple as "where that function sits".
function myfunction(){
where_is_this_function();
}
My question is, how can i find where is the file where the where_is_this_function()
sits
I know there are debuggers, find in files tools and other options, but i would like to know if there is any programmatic way to do so like, because sometimes it's more handy.
get_thefunction_file('where_is_this_function()')