convert_cyr_string
(PHP 4, PHP 5, PHP 7)
Convert from one Cyrillic character set to another
Removed-8-0-0
Description
convert_cyr_string(string $str, string $from, string $to): string
Converts from one Cyrillic character set to another.
Parameters
strThe string to be converted.
fromThe source Cyrillic character set, as a single character.
toThe target Cyrillic character set, as a single character.
Supported characters are:
- k - koi8-r
- w - windows-1251
- i - iso8859-5
- a - x-cp866
- d - x-cp866
- m - x-mac-cyrillic
Return Values
Returns the converted string.
Changelog
| Version | Description |
|---|---|
| 8.0.0 | Function |
| 7.4.0 | Function |