[ create a new paste ] login | about

Link: http://codepad.org/a3Bl4TeA    [ raw code | output | fork ]

PHP, pasted on Mar 16:
1
2
3
4
5
6
7
<?php

$myArray=array(1,2,3,10,11,100);

foreach ($myArray as $number){
    printf("%02d\n", $number);
}


Output:
1
2
3
4
5
6
01
02
03
10
11
100


Create a new paste based on this one


Comments: