apd_callstack

(no version information, might be only in CVS)

apd_callstack -- Returns the current call stack as an array

Description

array apd_callstack ( void )

Returns the current call stack as an array

例子 1. apd_callstack() example

<?php
print_r
(apd_callstack());
?>


add a note add a note User Contributed Notes
andrewpunch at bigfoot.com
12-Sep-2005 05:59
The returned array contains an array of arrays.

Each array appears to contain:
[0] = function name
[1] = filename that contains function
[2] = *calling* line number in *calling* file
[3] = An array which is usually empty