public function encodeInteger(int $data): string
    {
        $data = [$data];

        $converted = $this->baseConvert($data, 256, 62);

        return implode("", array_map(function ($index) {
            return $this->options["characters"][$index];
        }, $converted));
    }
public function encodeInteger(int $data): string
    {
        $data = [$data];

        $converted = $this->baseConvert($data, 256, 62);

        return implode("", array_map(function ($index) {
            return $this->options["characters"][$index];
        }, $converted));
    }
public function encodeInteger ( int $ data ) : string { $ data = [ $ data ] ; $ converted = $ this -> baseConvert ( $ data , 256 , 62 ) ; return implode ( "" , array_map ( function ( $ index ) { return $ this -> options [ "characters" ] [ $ index ] ; } , $ converted ) ) ; }
Encode given integer to a base62 string
Encode given integer to a base62 string