Php Format Int To 9 Digits With Preceding Zeroes

[Solved] Php Format Int To 9 Digits With Preceding Zeroes | Php - Code Explorer | yomemimo.com
Question : php format int to 9 digits with preceding zeroes

Answered by : gabe-m

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

Source : | Last Update : Wed, 17 Jun 20

Answers related to php format int to 9 digits with preceding zeroes

Code Explorer Popular Question For Php