convert_cyr_string() function converts a string from one Cyrillic character-set to another.
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
Parameter :
string
Required. The string to convert
from
Required. A character that specifies what Cyrillic character-set to convert
to
Required. A character that specifies what Cyrillic character-set to convert
Source code :
$str = "Hello world! æøå";
echo $str."
";
echo convert_cyr_string($str,'w','a');
Output Yang dihasilkan :
Hello world! æøå
Hello world! ¦è¥
Senin, 25 Februari 2008
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar