php函数嵌套

1 public function fn1(){
2   global $str;
3   $str='liuman';
4   function fn2(){
5     echo $GLOBALS['str'];
6   }    
7 }

 

posted @ 2015-07-12 23:24  刘满blog  阅读(144)  评论(0编辑  收藏  举报