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