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

	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.