September 2001
Intermediate to advanced
768 pages
32h 45m
English
string conver_cyr_string(string string, string source, string destination)
Converts between Cyrillic character sets.
Returns:
Converted string; if an error occurs, the original string
Description:
convert_cyr_string() converts strings from one Cyrillic character set to another. The character sets to be converted are specified with a single character code. The codes correspond to the following character sets.
| Symbol | Character set |
|---|---|
| k | KOI8-r |
| w | Windows-1251 |
| i | ISO8859-5 |
| a | x-cp866 |
| d | x-cp866 |
| m | x-Mac-Cyrillic |
If an invalid code is specified for the source and/or destination argument, the function generates a warning.
Note:
The presence of a null byte (\0) in the string halts the translation at that point.
Version:
PHP 3.0.6+, PHP ...
Read now
Unlock full access