Introduction
Getting Started
Methods
Encode the string to base64.
Twine\Str::base64Encode( void ) : Twine\Str
$string = new Twine\Str('john pinkerton'); $string->base64Encode(); // Returns 'am9obiBwaW5rZXJ0b24='