Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 985 Bytes

Base32::encode.md

File metadata and controls

52 lines (40 loc) · 985 Bytes
title package packageTitle layout className type
Base32::encode — Core Library
lib
Core Library
default
Base32
method

Base32::encode

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