- call_user_func: documentation ( source)
- debug_print_backtrace: documentation ( source)
<?php
namespace {
function foo($where) {
echo "{$where}:\n";
debug_print_backtrace();
}
call_user_func("foo", "No namespace");
echo "\n";
}
namespace bar {
call_user_func("foo", "In a namespace");
}