0
what output results from the following code?
$x=0; while($x<=7){ $x++; } echo $x
2 Respostas
+ 1
8
From $x=0 to 7 condition true so last
When 7<=7 true so $x++ executed so $x becomes 8
Condition fails when 8<=7, output 8
0
7
$x=0; while($x<=7){ $x++; } echo $x