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
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 ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.7 | Introduced. |