two digits?
Posted: Thu Apr 08, 2004 2:07 pm
Ok, here is what I am trying:
for($i = 1; $i <= 100; $i++) {
$var .= dechex($i);
}
print $var;
what it outputs is correct but I want is
00 instead of 0
01 instead of 1
....
and so forth how can I force the extra digit?
Thanks
for($i = 1; $i <= 100; $i++) {
$var .= dechex($i);
}
print $var;
what it outputs is correct but I want is
00 instead of 0
01 instead of 1
....
and so forth how can I force the extra digit?
Thanks