That would be correct. Right? If you want the the loop to execute at least once you use do..while:Originally Posted by lintz
PHP Code:do {
$Number2 = intval(rand(100, 999));
$Number1 = $Number2;
} while ($Number1 != $Number2);
|
Results 1 to 6 of 6
Thread: While LoopThreaded View
|
Click Here to Expand Forum to Full Width |