← All docs
mb_encode_mimeheader()
Encodes a MIME header with language defaults, Base64 or Q transfer, and folded lines.
mb_encode_mimeheader()
function mb_encode_mimeheader(string $string, ?string $charset = null, ?string $transfer_encoding = null, string $newline = "\r\n", int $indent = 0): string
Encodes a MIME header with language defaults, Base64 or Q transfer, and folded lines.
Parameters:
$string(string)$charset(?string), defaultnull, optional$transfer_encoding(?string), defaultnull, optional$newline(string), default"\r\n", optional$indent(int), default0, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/mb_encode_mimeheader.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_encode_mimeheader is implemented in the compiler, see the internals page.