recode_string

(PHP 3 >= 3.0.13, PHP 4, PHP 5)

recode_string -- コード変換指令に基づき文字列のコードを変換する

説明

string recode_string ( string request, string string )

コード変換指令 request に基づき文字列 string のコードを変換します。変換後の文字列 または変換指令を実行できない場合に FALSE を返します。

簡単なコード変換指令は、"lat1..iso646-de" のようになります。 コード変換指令に関する詳細な手順に関しては、インストールした GNU Recode のドキュメントも参照ください。

例 1. 基本的な recode_string() の例:

print recode_string ("us..flat", "The following character has a diacritical mark: á");