LLMS_Hasher::base62( int $int )

Base 62 encode a number


Parameters Parameters

$int

(int) (Required) number to encode


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.hasher.php

151
152
153
154
155
156
157
158
159
public static function base62( $int ) {
    $key = '';
    while ( $int > 0 ) {
        $mod  = self::mod( $int, 62 );
        $key .= chr( self::$chars62[ $mod ] );
        $int  = floor( $int / 62 );
    }
    return strrev( $key );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.