LLMS_Hasher::base62( int $int )
Base 62 encode a number
Parameters Parameters
- $int
-
(int) (Required) number to encode
Return Return
(string)
Source Source
File: includes/class.llms.hasher.php
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.7 | Introduced. |