note 55359 added to function.strtoupper

From: Date: Mon, 01 Aug 2005 10:46:39 +0000
Subject: note 55359 added to function.strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-92858@lists.php.net to get a copy of this message
The code for Polish programmers was spolied a little bit - \xB3 should be turned into \xA3, not the opposite. So the correct code is: function str2upper($text){ return strtr($text, "abcdefghijklmnopqrstuvwxyz". "\xB1\xE6\xEA\xA3\xF1\xF3\xB6\xBC\xBF". // ISO 8859-2 "\xB9\x9C\x9F", // win 1250 "ABCDEFGHIJKLMNOPQRSTUVWXYZ". "\xA1\xC6\xCA\xB3\xD1\xD3\xA6\xAC\xAF". // ISO 8859-2 "\xA5\x8C\x8F" // win 1250 ); } ---- Submitter IP: 64.246.30.37 ---- Manual Page -- http://www.php.net/manual/en/function.strtoupper.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55359 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55359&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55359&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55359&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55359&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55359&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55359&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55359&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92858) next »