Press "Enter" to skip to content

convert_cyr_string

PHP convert_cyr_string function

PHP convert_cyr_string function convert string to one character set to another character set.

Example for PHP convert_cyr_string function

<?php
$str = “welcome to w3htmlschool сВМПЛП”;
echo $str . “<br>”;
echo convert_cyr_string($str,’w’,’d’);
?>

Supported characters are:


k – koi8-r

w – windows-1251

i – iso8859-5

a – x-cp866

d – x-cp866

m – x-mac-cyrillic