PHP convert_cyr_string() Function

PHP convert_cry_string() function is used to convert from one Cyrillic character-set to another.

Syntax:


string convert_cyr_string ( string $str , string $from , string $to );    
   
Parameter Description Required/Optional
string String to convert Required
from Specify the Cyrillic character-set to convert. Required
to Specify the Cyrillic character-set to convert. Required

The supported Cyrillic character-sets are;

Example 1


<?php 
$str="Hello Shorat Innovation!  ???";  
echo "Your String is :".$str;  
echo "<br>"."By using 'convert_cyr_string()' Function : ".convert_cyr_string($str,'w','a');  
?>
                            

Output

Your String is :Hello Shorat Innovation! ??? By using 'convert_cyr_string()' Function : Hello Shotar Innovation! ?.?.?.