note 34161 added to function.strtr
| From: | Sanate at seznam dot cz | Date: | Thu, 17 Jul 2003 10:51:12 +0000 |
| Subject: | note 34161 added to function.strtr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52264@lists.php.net to get a copy of this message | ||
// Hello to all Czech and Slovak people!
// I hope this function can be useful and easier to find here,
// than at the original source (and opposite direction). :
// http://www.kosek.cz/clanky/tipy/qa07.html
// s pozdravem Filip Rydlo z Pohodasoftware.Cz
function latin2_to_win1250($text) { // chce text v iso-88592
$text = StrTr($text, "\xA\xAB\xAE\xB\xBB\xBE",
"\x8A\x8D\x8E\x9A\x9D\x9E");
return $text;
}
----
Manual Page -- http://www.php.net/manual/en/function.strtr.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34161
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34161&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34161&report=yes