Looks like this function has exactly the same behavior as base64_decode($test, true) -> it returns FALSE if $text contains characters outside the Base64 alphabet, although this isn't documented here.
imap_base64
(PHP 4, PHP 5)
imap_base64 — BASE64 でエンコードされたテキストをデコードする
説明
string imap_base64
( string $text
)
BASE64 でエンコードされたテキスト text をデコードします。
パラメータ
- text
-
エンコードされたテキスト。
返り値
デコードしたメッセージを文字列で返します。
参考
- imap_binary() - 8 ビット文字列を base64 文字列に変換する
- base64_encode() - MIME base64 方式でデータをエンコードする
- base64_decode() - MIME base64 方式によりエンコードされたデータをデコードする
- » RFC2045, Section 6.8
chris at deliens dot be
05-Mar-2011 02:15
