Introduction
In this article I describe the PHP string functions convert_cyr_string, convert_uudecode and convert_uuencode. To learn some other math functions, go to:
PHP convert_cyr_string() Function
The PHP convert_cyr_string function converts a string from one Cyrillic character set to another and returns a converted string.
The supported characters sets are:
- k - koi8-r
- w - windows-1251
- i - iso8859-5
- a - x-cp866
- d - x-cp866
- m - x-mac-cyrillic
Syntax
| convert_cyr_string(string, from,to) |
Parameters of the convert_cyr_string Function
The parameters of the convert_cyr_string function are:
| Parameter | Description |
| string | It specifies the string to convert. |
| length | It specifies Cyrillic character set, as a single character. |
| to | It specifies what Cyrillic character-set to convert to. |
Example
An example of the convert_cyr_string function is:
<?php
$string = 'Welcome at MCN Solution..';
echo $string.'<br>';
echo convert_cyr_string($string, 'w', 'k');



Join the conversation! Your thoughts help the community grow.