Skip to content
Mo McRoberts edited this page Aug 7, 2011 · 1 revision

Encode an integer as base-32

Synopsis

uses('base32');

public static function string [[Base32]]::encode(int [in] $input)

Description

Encodes an integer as a base-32 value, that is, a value where each digit has 32 possible values (0-9, a-x). The letters 'i', 'l', 'o', 'y' and 'z' are not included in the alphabet.

Parameters

Name Direction Type Description
$input in int The number to encode

Return Value

A string containing the value of $input encoded as base-32

Clone this wiki locally