Is it possible (in an efficient manor) to retrieve the filename (and line if possible) of the previous command that called a function in another (included) file?
For example:
Foo.php
function foo() {
bar();
}
Bar.php
function bar() {
// some stuff that will show when the above is executed:
// Foo.php, line 2 (last bit if possible)
}