[Solved] PHP – How to start my count from 5000 [closed]


You could initialize $i to the right value, before beginning looping :

$i=5000;
while($i<=19000){
    $i++;
}

And/or you could rewrite your code to use a for loop :

for ($i=5000 ; $i<=19000 ; $i++) {
    // use $i
}

In this kind of situations, using a for loop, instead of while, might make your code easier to understand.

solved PHP – How to start my count from 5000 [closed]