Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<imap_utf8IMAP\Connection>
^IMAP FunctionsLast updated: Mon, 26 Oct 2026

imap_utf8_to_mutf7

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

imap_utf8_to_mutf7 — Encode a UTF-8 string to modified UTF-7

Description

function 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, or false on failure.

See Also


<imap_utf8IMAP\Connection>
^IMAP FunctionsLast updated: Mon, 26 Oct 2026