note 59095 added to function.strtoupper

From: Date: Sat, 26 Nov 2005 02:04:26 +0000
Subject: note 59095 added to function.strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-99120@lists.php.net to get a copy of this message
Here is correct str2upper function for polish programmers (plus str2lower function): <?php function str2upper($text){ return strtr($text, "abcdefghijklmnopqrstuvwxyz". "\xB1\xE6\xEA\xB3\xF1\xF3\xB6\xBC\xBF". // ISO 8859-2 "\xB9\x9C\x9F", // win 1250 "ABCDEFGHIJKLMNOPQRSTUVWXYZ". "\xA1\xC6\xCA\xA3\xD1\xD3\xA6\xAC\xAF". // ISO 8859-2 "\xA5\x8C\x8F" // win 1250 ); } function str2lower($text){ return strtr($text, "ABCDEFGHIJKLMNOPQRSTUVWXYZ". "\xA1\xC6\xCA\xA3\xD1\xD3\xA6\xAC\xAF". // ISO 8859-2 "\xA5\x8C\x8F", // win 1250 "abcdefghijklmnopqrstuvwxyz". "\xB1\xE6\xEA\xB3\xF1\xF3\xB6\xBC\xBF". // ISO 8859-2 "\xB9\x9C\x9F" // win 1250 ); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.strtoupper.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59095 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59095&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59095&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99120) next »