©
本文档使用
php.cn手册 发布
(PECL apd 0.2-0.4)
apd_callstack — Returns the current call stack as an array
Returns the current call stack as an array
An array containing the current call stack.
Example #1 apd_callstack() example
<?php
print_r ( apd_callstack ());
?>
[#1] andrewpunch at bigfoot.com [2005-09-11 14:59:09]
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