Re: PERL Caller equivalent function

From: Date: Tue, 21 Mar 2006 03:01:57 +0000
Subject: Re: PERL Caller equivalent function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232287@lists.php.net to get a copy of this message
sgsweb wrote:
Hi, Perl has a function named caller with the following signature and return values: ($package, $filename, $line, $subroutine,
    $hasargs, $wantarray, $evaltext, $is_require) = caller($i);
This function returns information pertaining to the calling routine, such as the name of the function and package that called this function. Is there such a function for PHP?
debug_backtrace returns an array of how the function got called (ie the complete path that was taken from the start to get to this function). http://www.php.net/debug_backtrace -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#232287) next »