LLMS_Hasher::unbase62( string $key )
Decode a base62 encoded string to get the associated number
Parameters Parameters
- $key
-
(string) (Required) encoded character
Return Return
(int)
Source Source
File: includes/class.llms.hasher.php
public static function unbase62( $key ) {
$int = 0;
foreach ( str_split( strrev( $key ) ) as $i => $char ) {
$dec = array_search( ord( $char ), self::$chars62 );
$int = ( ( $dec * pow( 62, $i ) ) + $int );
}
return $int;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.16.7 | Introduced. |