PERL Caller equivalent function
| From: | sgsweb | Date: | Tue, 21 Mar 2006 02:51:29 +0000 |
| Subject: | PERL Caller equivalent function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232286@lists.php.net to get a copy of this message | ||
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? Please let me know. thanks, sgs.