PHP convert_cyr_string() Function

PHP convert_cry_string() function is used to convert from one Cyrillic character-set to another.

Syntax:

ParameterDescriptionRequired/Optional
StringString to convertRequired
fromSpecify the Cyrillic character-set to convert.Required
toSpecify 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 Javatpoint! ???
By using 'convert_cyr_string()' Function : Hello Javatpoint! ?.?.?.

Next TopicPHP String




Latest Courses