Mecha CMS

To::base64()

Encode string to Base64.

2.0.0Static

To::base64(string $in);

Example:

$A = To::base64('i love you');

Result:

$A = 'aSBsb3ZlIHlvdQ==';