Loader

convert_cyr_string

Converts from one Cyrillic character set to another. Test convert_cyr_string online.

string convert_cyr_string ( string $str , string $from , string $to )

The source Cyrillic character set, as a single character.
The target Cyrillic character set, as a single character.

PHP Documentation by the PHP Documentation Group

convert_cyr_string

(PHP 4, PHP 5, PHP 7)

convert_cyr_stringConvert from one Cyrillic character set to another

Warning

This function has been DEPRECATED as of PHP 7.4.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.

Description

convert_cyr_string(string $str, string $from, string $to): string

Converts from one Cyrillic character set to another.

Parameters

str

The string to be converted.

from

The source Cyrillic character set, as a single character.

to

The 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.

Notes

Note: This function is binary-safe.

See Also

PHP Documentation

Copyright © 1997 - 2016 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Creative Commons Attribution 3.0 License or later. A copy of the Creative Commons Attribution 3.0 license is distributed with this manual. The latest version is presently available at » http://creativecommons.org/licenses/by/3.0/.