PHP for loop break statement

Start PHP Code RESULT
4000 divided by -4 is... -1000
4000 divided by -3 is... -1333.3333333333
4000 divided by -2 is... -2000
4000 divided by -1 is... -4000
End PHP Code RESULT

The PHP Code START
$counter = -4;
for (; $counter <= 10; $counter++) {
    if ( $counter == 0 )
        break;
    $temp = 4000/$counter;
    print "4000 divided by $counter is... $temp<br />";
}
The PHP Code END

Back to Bill's PHP