php nested for statements?
Posted
by Dashiell0415
on Stack Overflow
See other posts from Stack Overflow
or by Dashiell0415
Published on 2010-06-09T16:16:04Z
Indexed on
2010/06/09
16:22 UTC
Read the original article
Hit count: 218
php
|nested-loops
I'm trying to process a for loop within a for loop, and just a little wary of the syntax... Will this work? Essentially, I want to run code for every 1,000 records while the count is equal to or less than the $count... Will the syntax below work, or is there a better way?
for($x = 0; $x <= 700000; $x++) {
for($i = 0; $i <= 1000; $i++) {
//run the code
}
}
© Stack Overflow or respective owner