35 if (0 >= $maxLineLength || 76 < $maxLineLength)
40 $encodedString = base64_encode($string);
43 if (0 != $firstLineOffset)
46 $encodedString, 0, $maxLineLength - $firstLineOffset
48 $encodedString = substr(
49 $encodedString, $maxLineLength - $firstLineOffset
53 return $firstLine . trim(chunk_split($encodedString, $maxLineLength,
"\r\n"));