Encodes a string to its Base64 representation. Works on binary input, so it is the safe way to carry arbitrary bytes through a text channel. Also registered as base64_encode.

Parameters

string
required
The string to encode.

Returns

string
The Base64 text.

Example

Errors