Change 1 to 01
Posted: Thu Oct 02, 2003 10:23 pm
Alright, just when I think I have a good understanding of PHP I forget the simple things. I know this is easy and has been addressed he but I did a search and was unable to find the posting.
He it is, I have a simple for call
but instead of it printing the numbers 1 2 3 4 5 etc ... I would like it to print 01 02 03 04 05 etc ...
Help please..
He it is, I have a simple for call
Code: Select all
for ($m = 1; $m <= 12; $m++) {
if ($m == date("n")){
print "<b>$m</b><br>";
}else{
print $m. "<br>";
}
}Help please..