I'm trying to generate invoice numbers. They should always be 4 numbers long, with leading zeros, for example :
- 1 -> Invoice 0001
- 10 -> Invoice 0010
- 150 -> Invoice 0150
etc.
question from:https://stackoverflow.com/questions/6296822/how-to-format-numbers-with-00-prefixes-in-php