Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP convert_cyr_string() Function

PHP convert_cyr_string() Function

PHP String Reference Manual PHP String Reference Manual

Example

Convert a string from one character set to another:

"; echo convert_cyr_string($str,'w','a'); ?>

Run Example »


Definition and Usage

The convert_cyr_string() function converts a string from one Cyrillic character set to another.

The supported Cyrillic character sets are:

**Note:** This function is binary-safe.


Syntax

convert_cyr_string(

string,from,to

)

Parameters Description
string Required. Specifies the string to convert.
from Required. A character specifying the source Cyrillic character set.
to Required. A character specifying the target Cyrillic character set.

Technical Details

Return Value: Returns the converted string.
PHP Version: 4+

PHP String Reference PHP String Reference Manual