0

How can I format numbers with php to be double digits (including leading zeros)?

勿绮语
  • 9,170
  • 1
  • 29
  • 37
acctman
  • 4,229
  • 30
  • 98
  • 142

1 Answers1

3
echo sprintf("%02d", $en['num_pictures']);
勿绮语
  • 9,170
  • 1
  • 29
  • 37