the question title might be a bit confuse. but here is my case.
i would like my result to like something like:
0000000000
0000000001
0000000002
0000000003
0000000004
0000000005
0000000006
0000000007
0000000008
0000000009
0000000010
0000000001
0000000011
0000000012
0000000013
0000000014
0000000015
0000000016
0000000017
0000000018
0000000019
0000000002
0000000020
0000000021
0000000022
0000000023
...
0000000003
...
0000000004
...
i can get the first numbers by doing this:
for ($i = 1; $i<=10; $i++){
$nr=str_pad($i, 10, "0", STR_PAD_LEFT);
echo $nr.'<br>';
}
but then how do i get the numbers in between?
any ideas?
Thanks
edit: the second row of numbers are based on 10 by 10 count.
so. first record will have 10 other records underneath, the second record another 10 and so on.
i’ve tried something using $floor= floor($i/10); and adding that to the second set of records in here: $nr=str_pad($floor, 10, "0", STR_PAD_LEFT);
I don’t quite understand what you are trying to do. But one possible solution would be this:
See it in action.
Depending on your problem, using two cycles might be better for you:
Live.