Convert a string from one character-set to another:
<?php
$str = "Hello world! æøå";
echo $str . "<br>";
echo convert_cyr_string($str,'w','a');
?>
Try it Yourself »
The convert_cyr_string() function converts a string from one Cyrillic character-set to another.
The supported Cyrillic character-sets are:
Note: This function is binary-safe.
convert_cyr_string(
string,from,to)
Parameter | Description |
---|---|
string | Required. The string to convert |
from | Required. A character that specifies what Cyrillic character-set to convert from |
to | Required. A character that specifies what Cyrillic character-set to convert to |
Return Value: | Returns the converted string |
---|---|
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!