Base62
in package
FinalYes
Provides a Base62 serialiser.
Table of Contents
Methods
- decode() : int
- Decodes a Base62 string back to an integer.
- encode() : string
- Encodes an integer as a Base62 string.
Methods
decode()
Decodes a Base62 string back to an integer.
public
static decode(Stream|string $input) : int
Parameters
- $input : Stream|string
-
Input Base62 string.
Return values
int —Integer.
encode()
Encodes an integer as a Base62 string.
public
static encode(int $input) : string
Parameters
- $input : int
-
Integer.
Return values
string —Base64 string representing the integer.