• PHP Video Tutorials

PHP - Function convert cyr string



Syntax

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

Definition and Usage

It is used to convert from one Cyrillic character set to another

Return Values

It returns the converted string.

Parameters

Sr.No Parameters & Description
1

str

The string to be converted

2

from

The source Cyrillic character set, as a single character.

3

to

The target Cyrillic character set, as a single character.

Example

Try out the following example

<?php
   $str = "tutorials Point ";
   echo convert_cyr_string($str,'w','a'); 
?>

This will produce following result −

 
tutorials Point
php_function_reference.htm
Advertisements