Open Monograph Press
3.3.0
|
Public Member Functions | |
encodeString (string $string, ?string $charset='utf-8', int $firstLineOffset=0, int $maxLineLength=0) | |
Definition at line 17 of file Base64Encoder.php.
Symfony\Component\Mime\Encoder\Base64Encoder::encodeString | ( | string | $string, |
?string | $charset = 'utf-8' , |
||
int | $firstLineOffset = 0 , |
||
int | $maxLineLength = 0 |
||
) |
Takes an unencoded string and produces a Base64 encoded string from it.
Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.
Implements Symfony\Component\Mime\Encoder\EncoderInterface.
Reimplemented in Symfony\Component\Mime\Encoder\Base64MimeHeaderEncoder.
Definition at line 26 of file Base64Encoder.php.