Consider the following functions:
function debug() {
$args = func_get_args();
}
function debug_die() {
die;
}
The method debug_dieexits after a call debugthat takes a variable number of arguments.
Thus, arguments passed debug_dieas such are intended only for debugand should simply be redirected. How can this be done in a method debug_die?
source
share