mb_convert_kana
mb_convert_kana
Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
string **mb_convert_kana** string $string string $mode $encoding
Performs a "han-kaku" - "zen-kaku" conversion for .
This function is only useful for Japanese.
string``string
string
The being converted.
string
modeThe conversion option.
Specify with a combination of following options.
encoding
The converted .
string
Throws a if the combination of
different s is invalid.
For example .
ValueError``mode``"sS"
Voorbeeld: example
<?php
/* Convert all "han-kaku" "kata-kana" to "zen-kaku" "hira-gana" */
echo mb_convert_kana('ヤマダ ハナコ', "HV") . "\n";
/* Convert "han-kaku" "kata-kana" to "zen-kaku" "kata-kana"
and "zen-kaku" alphanumeric to "han-kaku" */
echo mb_convert_kana('コウザバンゴウ 0123456', "KVa") . "\n";
?>
やまだ はなこ
コウザバンゴウ 0123456