imap_base64

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

imap_base64BASE64 でエンコードされたテキストをデコードする

説明

imap_base64(string $string): string|false

BASE64 でエンコードされたテキスト string をデコードします。

パラメータ

string

エンコードされたテキスト。

戻り値

デコードしたメッセージを文字列で返します。 失敗した場合に false を返します

参考

  • imap_binary() - 8 ビット文字列を base64 文字列に変換する
  • base64_encode() - MIME base64 方式でデータをエンコードする
  • base64_decode() - MIME base64 方式によりエンコードされたデータをデコードする
  • » RFC2045, Section 6.8

add a note add a note

User Contributed Notes 1 note

up
7
chris at deliens dot be
13 years ago
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.
To Top