This forum is now read-only. Please use our new forums at discuss.codecademy.com.

For Loops in PHP Forum

View Course » View Exercise

213 points
4ec5f1030938e4062be63adfa9af4824?s=140&d=retro
Submitted by
Jason Bankole
over 3 years ago

[resolved] My code won't return the correct response

For Loops PHP 4/7

I think I have written the code correctly but my answers never return correct

for ($firstLoop = 50; $firstLoop => 5; $firstLoop = $firstLoop - 5) {
        echo $firstLoop;
    }

Thanks


0 votes

permalink

Now resolved. Apparently I used the following instead of the earlier one.

for ($firstLoop = 50; $firstLoop > 0; $firstLoop = $firstLoop - 5) {
echo $firstLoop;
}

213 points
4ec5f1030938e4062be63adfa9af4824?s=140&d=retro
Submitted by
Jason Bankole
over 3 years ago

1 Comment

53c4675c8c1ccc62f200295d_606240500 Stefano Bozzi about 3 years ago

Yes, glad you made it