10 个经典PHP函数
$a = 0;
function iterate() {
global $a;
if( $a < 10 )
recur();
echo $a . “, “;
}
function recur() {
global $a;
$a++;
// how did I get here?
echo “\n\n\n”;
debug_print_backtrace();
if( $a < 10 )
iterate();
}
iterate();
# OUTPUT:
#0 recur() called at [C:\htdocs\php_stuff\index.php:8]
#1 iterate() called at [C:\htdocs\php_stuff\index.php:25]
#0 recur() called at [C:\htdocs\php_stuff\index.php:8]
#1 iterate() called at [C:\htdocs\php_stuff\index.php:21]
#2 recur() called at [C:\htdocs\php_stuff\index.php:8]
#3 iterate() called at [C:\htdocs\php_stuff\index.php:25]
#0 recur() called at [C:\htdocs\php_stuff\index.php:8]
#1 iterate() called at [C:\htdocs\php_stuff\index.php:21]
#2 recur() called at [C:\htdocs\php_stuff\index.php:8]
#3 iterate() called at [C:\htdocs\php_stuff\index.php:21]
#4 recur() called at [C:\htdocs\php_stuff\index.php:8]
#5 iterate() called at [C:\htdocs\php_stuff\index.php:25]
- 10 个经典PHP函数
- 10 个经典PHP函数
- [刷题]算法竞赛入门经典 3-10/UVa1587 3-11/UVa1588
- 10.[个人]C++线程入门到进阶(10)----多线程经典面试题
- 算法竞赛入门经典 习题2-10 排列(permutation)
- 10 款你最需要的经典免费软件!
- Java经典基础练习1-10
- 一些经典的php函数方法代码整理
- C/C++语言经典、实用、趣味程序设计编程百例精解 (10)
- 数据挖掘十大经典算法(10) CART: 分类与回归树
- 数据挖掘十大经典算法(10) CART
- 面试10问的经典回答(收藏)
- 【深度学习】笔记4_caffe第二个比较经典的[小图片]识别例子CIFAR_10的运行,网络模型的详解
- C经典之12-用链表存1-10的数字---ShinePans
- POJ1088 滑雪 && NYOJ 10 skiing 经典的动态规划练习题
- http://www.mianwww.com/html/2012/10/17027.html面试题(经典)
- 回顾经典Effective C++ 9 10 11 12
- 经典文章:1-10
- 照片调色系列教程(10):粉经典!老照片轻松做
- PHP学习笔记【10】--PHP函数