PHP - variable scope inside if statement and while loop ...
經安全檢測,此網站為安全網站,請放心前往原始網址!
PHP - variable scope inside if statement and while loop ...
2013年8月13日 - function foo(){ $i=0 while($i==0){ $i=1; $a=1; } echo $a; //$a is available here although it might be undefined as the condition may not have been met } ...