1 2 3 4 5 6 7
<?php $myArray=array(1,2,3,10,11,100); foreach ($myArray as $number){ printf("%02d\n", $number); }
1 2 3 4 5 6
01 02 03 10 11 100