php fixed leading zero's and decimals code example Example: php pad leading zeros str_pad($value, 8, '0', STR_PAD_LEFT);