Skip to content
Advertisement

How format number value in php?

I want format number as style ‘00000’ ex:

JavaScript

How format number in php?

Advertisement

Answer

You should use str_pad : https://www.php.net/manual/en/function.str-pad.php

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement