standard.coding.base64.mime_encode

mime_encode is available since version 1.0.

Prototype:

string mime_encode(string data)

Parameters

data
the data to encode

Description:

Base64 encode a stream adding padding and line breaks. Encode 3 8-bit binary bytes as 4 '6-bit' characters.

Return value:

Returns the encoded stream.