PHP递归

1 function getList($pid){
2     ...
3     if($row){
4        getList();  
5     }    
6     ...  
7     return $result;
8 }
  • 调用自身函数

1、$_GLOBALS[result];

2、static $result;

3 、参数引用&;

原文地址:https://www.cnblogs.com/vanone/p/5620688.html