So, I want to generate all possible 4 digit numbers in columns, one by one, (0-9) from 0000 to 9999, and concatenate a string before them, like:
text0000
text0001
text0002
text0003
text0004
text0005
Thanks in advance.
So, I want to generate all possible 4 digit numbers in columns, one by one, (0-9) from 0000 to 9999, and concatenate a string before them, like:
text0000
text0001
text0002
text0003
text0004
text0005
Thanks in advance.
Following will do the trick.
for($i=0;$i<10000;$i++)
echo "text".str_pad ($i,4,'0', STR_PAD_LEFT)."<br />";