note 54766 deleted from function.strtoupper by nlopess

From: Date: Sun, 20 May 2007 13:41:33 +0000
Subject: note 54766 deleted from function.strtoupper by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126727@lists.php.net to get a copy of this message
Note Submitter: topera at gmail dot com ---- 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

« previous php.notes (#126727) next »