- var_dump: documentation ( source)
- get_defined_vars: documentation ( source)
- func_get_args: documentation ( source)
- call_user_func: documentation ( source)
<?php
namespace Foo {
function test($a, $b, $c) {
var_dump(call_user_func('func_get_args'));
var_dump(call_user_func('get_defined_vars'));
}
test(1, 2, 3);
}
namespace {
function test($a, $b, $c) {
var_dump(call_user_func('func_get_args'));
var_dump(call_user_func('get_defined_vars'));
}
test(1, 2, 3);
}