code:
for($i = 0; $i < 100000; $i++) {
print ensure_len($i, 5) . "\n";
}
function ensure_len($num, $len) {
$num = (string)$num;
while(strlen($num) < $len) {
$num = "0" . $num;
}
return $num;
}
That's a simple PHP script to do it... Shouldn't be too hard right
