Unbenannt
public text v1 · immutable<?php
$var=5;
for($i=0;$i<=$var;$i++){
if($x){$b=0;}else{$b=1;}
echo "$b<BR>";
$x=!$x;
}
echo "$b<BR>";// how come $b is available outside the for loop?
?><?php
$var=5;
for($i=0;$i<=$var;$i++){
if($x){$b=0;}else{$b=1;}
echo "$b<BR>";
$x=!$x;
}
echo "$b<BR>";// how come $b is available outside the for loop?
?>