PHP convert_cyr_string Function


PHP convert_cyr_string Function : Is Used to convert one character set to another character set.


PHP convert_cyr_string Function Syntax

convert_cyr_string(string, from, to)

Following charsets are available :

  • k – koi8-r
  • w – windows-1251
  • i – iso8859-5
  • a – x-cp866
  • d – x-cp866
  • m – x-mac-cyrillic

PHP convert_cyr_string Function

$string = "Hello World !";
$str = convert_cyr_string($string,w,a);
echo $str;

Try it »

Output of the above example will be :

PHP convert_cyr_string Function

PHP convert_cyr_string Function


Advertisements

Add Comment

📖 Read More