PHP - Loops
What will be the output of this PHP code?
$total = 0;
for ($i = 1; $i <= 5; $i++) {
$total += $i;
}
echo $total;$total = 0;
for ($i = 1; $i <= 5; $i++) {
$total += $i;
}
echo $total;15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions