All pastes #896187 Raw Edit

Unbenannt

public text v1 · immutable
·published 2008-02-08 13:10 UTC
rendered paste body
<?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?
?>