php8.5
Home/ Manual/ imap / functions/ imap_utf8_to_mutf7

imap_utf8_to_mutf7

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Encode a UTF-8 string to modified UTF-7

Description

imap_utf8_to_mutf7(string $string): string|false

Encode a UTF-8 string to modified UTF-7 (as specified in RFC 2060, section 5.1.3).

Note

This function is only available, if libcclient exports utf8_to_mutf7().

Parameters

string

A UTF-8 encoded string.

Return Values

Returns string converted to modified UTF-7, Falseforfailure.

See Also

Source: reference/imap/functions/imap-utf8-to-mutf7.xml · from the official PHP manual (php/doc-en)