(PHP 3, PHP 4, PHP 5)

imap_base64 -- Decode BASE64 encoded text


string imap_base64 ( string text )

imap_base64() function decodes BASE-64 encoded text (see RFC2045, Section 6.8). The decoded message is returned as a string.

See also imap_binary(), base64_encode() and base64_decode().

add a note add a note User Contributed Notes
jesper at intraq dot net
01-Nov-2004 11:55
I compared imap_base64 and base64_decode.
I tested to decode a 70 mb mail attachment read from disk into a variable with file_get_contents.

imap_base64 is slower, and use more memory than base64_decode. (win32)

imap_base64 took 2.2 sec and used 187 mb ram
base64_decode took 1.5 sec and used 131 mb ram