PHP - Loops
What will be the output of this PHP code?
$count = 5;
while ($count > 0) {
echo $count . ',';
$count -= 2;
}What will be the output of this PHP code?
$count = 5;
while ($count > 0) {
echo $count . ',';
$count -= 2;
}$count > 0, decreasing by 2 each time.$count = -1, loop stops.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions