Question : fill zero on php
Answered by : topandhi-omega
$number = 12;
$width = 4;
$padded = str_pad((string)$number, $width, "0", STR_PAD_LEFT);
Source : https://stackoverflow.com/questions/1443586/zerofill-a-integer-php | Last Update : Fri, 10 Sep 21