note 54766 added to function.strtoupper

From: Date: Thu, 14 Jul 2005 15:52:15 +0000
Subject: note 54766 added to function.strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-91971@lists.php.net to get a copy of this message
I'm using the function stringUpDown() (from Jose Roberto Kerne), and I found one problem: <? echo stringUpDown("áõ"); // returns "ÀÔ", and it is wrong // the correct value is:"ÁÕ" ?> To fix it, I changed this: <?php // begin of the function ...... $arrayLower=array('ç' ,'â','ã','à','á','ä' ,'é','è','ê','ë' ,'í','ì','î','ï' ,'ó','ò','ô','õ','ö' ,'ú','ù','û','ü'); $arrayUpper=array('Ç' ,'Â','Ã','Á','À','Ä' ,'É','È','Ê','Ë' ,'Í','Ì','Î','Ï' ,'Ó','Ò','Õ','Ô','Ö' ,'Ú','Ù','Û','Ü'); // end of the function ...... ?> to this: <?php // begin of the function ...... $arrayLower=array('ç' ,'â','ã','à','á','ä' ,'é','è','ê','ë' ,'í','ì','î','ï' ,'ó','ò','ô','õ','ö' ,'ú','ù','û','ü'); $arrayUpper=array('Ç' ,'Â','Ã','À','Á','Ä' ,'É','È','Ê','Ë' ,'Í','Ì','Î','Ï' ,'Ó','Ò','Ô','Õ','Ö' ,'Ú','Ù','Û','Ü'); // end of the function ...... ?> (I changed the array's position) Rafael Pereira dos Santos ---- Manual Page -- http://www.php.net/manual/en/function.strtoupper.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54766 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54766&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54766&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54766&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54766&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54766&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54766&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54766&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91971) next »