View Single Post
Old 08-12-2003, 04:09   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
Well mik, I mean gwx, here you go.

In PHP
$counter = 1
while ( $counter <= 12 )
{ print "$counter times 2 is ".($counter*2)."<br>";
$counter++
}
In Plain English
Counter = 1
If 1 is less than or equal to 12
Print - 1 times 2 is 2
Add 1 to Counter

Loop again...
Counter now equals 2
If 2 is less than or equal to 12 blah blah blah
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote