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

imap_binary

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Convert an 8bit string to a base64 string

Description

imap_binary(string $string): string|false

Convert an 8bit string to a base64 string according to RFC2045, Section 6.8.

Parameters

string

The 8bit string

Return Values

Returns a base64 encoded string, Falseforfailure.

See Also

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