10进制整数转62进制的函数
/** * 62进制转为10进制 * * @param integer $n 62进制 * @return string 10进制 */function dec10($s) {$base = 62;$index = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';$ret = 0;$len = strlen($s) - 1;for($t = 0; $t <= $len; $t ++) {$ret += strpos($index, substr($s, $t, 1)) * pow($base, $len - $t);}return $ret;}