- or download this
$num = 1234567;
$result = "";
...
$num /= $base;
} while $num;
print $result;
- or download this
substr($result, 0, 0) = "0" while length($result) < 32;
- or download this
$num = 1234567;
$base = 16;
...
$num /= $base;
} while $num;
print $result;