PHP - variable scope inside if statement and while loop ...

PHP - variable scope inside if statement and while loop ...

瀏覽:510
日期:2025-10-03
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 } ......看更多