Php-function-convert-cyr-string

提供:Dev Guides
2020年6月23日 (火) 02:46時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

PHP-cyr文字列を変換する関数

構文

string convert_cyr_string ( string $str , string $from , string $to )

定義と使い方

あるキリル文字セットから別の文字セットに変換するために使用されます

戻り値

変換された文字列を返します。

パラメーター

Sr.No Parameters & Description
1

str

変換される文字列

2

from

単一文字としてのソースキリル文字セット。

3

to

単一文字としてのターゲットキリル文字セット。

次の例を試してください

<?php
   $str = "tutorials Point ";
   echo convert_cyr_string($str,'w','a');
?>

これにより、次の結果が生成されます–

tutorials Point