Hi I have a number base (in base 62) which is represented like this: $base = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; PHP: Can anyone help me with a function that converts from decimal (base 10) to this new base please ? Thanks, Brew
<?php $number = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $beginbase = 62; $newbase = 10; echo base_convert($number, $beginbase , $newbase); ?> Code (markup):