LLMS_Hasher::unbase62( string $key )

Decode a base62 encoded string to get the associated number


Parameters Parameters

$key

(string) (Required) encoded character


Top ↑

Return Return

(int)


Top ↑

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;
	}


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.