PHP -Format int bis 9 Ziffern mit vorhergehenden Nullen

str_pad($input, 9, "0", STR_PAD_LEFT);
Carnivorous Flamingo