convert_cyr_string
Convert a character from one Cyrillic character to another
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 a string from one character set to another:
<?php $str = "Hello world! ???" ; echo $str . "<br>" ; echo convert_cyr_string ( $str , 'w' , 'a' ) ; ?>
convert_cyr_string ( string , from , to )
parameter | describe |
---|---|
string | Required. Specifies the string to be converted. |
from | Required. A character that specifies the source Cyrillic character set. |
to | Required. A character that specifies the target Cyrillic character set. |