Closed dejurin closed 7 years ago
$length = strlen($base); while($integer > $length - 1) { $out = $base[fmod($integer, $length)] . $out; $integer = floor( $integer / $length ); } return $base[$integer] . $out;
replace
$length = strlen($base); while($integer > $length - 1) { $out = $base[(int) fmod($integer, $length)] . $out; $integer = floor( $integer / $length ); } return $base[(int) $integer] . $out;
$length = strlen($base); while($integer > $length - 1) { $out = $base[fmod($integer, $length)] . $out; $integer = floor( $integer / $length ); } return $base[$integer] . $out;
replace
$length = strlen($base); while($integer > $length - 1) { $out = $base[(int) fmod($integer, $length)] . $out; $integer = floor( $integer / $length ); } return $base[(int) $integer] . $out;