EG: Fixed 6-digit length, 000001, 000002, 000003,......
Increase in turn.
str_pad($number, 6, '0', STR_PAD_LEFT);
sprintf("%06d", $num);
echo sprintf("%'06d\n", 1);
sprintf("%06d", $num);