I'd like to test a number of values between 01 and 16, now I know I can test 1-16 easily with a for loop, but 01-16 needs an addition.
I can obviously do it like below...
for ($i=1; $i<=16; $i++) {
if ($i<=9) {$i = "0".$i;}
//code
}
I was just wondering if PHP already had a function/way of doing this?
for ($i=01 ... doesn't work, it just returns 1, 2, 3...
Thanks!