88
PHP convert_cyr_string() Function
PHP convert_cry_string() function is used to convert from one Cyrillic character-set to another.
Syntax:
Parameter | Description | Required/Optional |
---|---|---|
String | String to convert | Required |
from | Specify the Cyrillic character-set to convert. | Required |
to | Specify the Cyrillic character-set to convert. | Required |
The supported Cyrillic character-sets are;
- k – koi8-r
- w – windows-1251
- i – iso8859-5
- a – x-cp866
- d – x-cp866
- m – x-mac-cyrillic
Note: This function is binary-safe.
Example 1
Output:
Your String is :Hello TutorAspire! ??? By using 'convert_cyr_string()' Function : Hello TutorAspire! ?.?.?.
Next TopicPHP String