What is the output of this code?
$i = 0;
while($i < 6) {
if($i++ == 3) break;
}
echo "loop stopped at $i by break statement";
What is the output of this code?
$i = 0;
while($i < 6) {
if($i++ == 3) break;
}
echo "loop stopped at $i by break statement";