base64Encode

Encode the string to base64.

Twine\Str::base64Encode( void ) : Twine\Str

Examples

$string = new Twine\Str('john pinkerton');

        $string->base64Encode(); // Returns 'am9obiBwaW5rZXJ0b24='