note 104012 modified in function.strtoupper by danbrown

From: Date: Tue, 17 May 2011 14:08:05 +0000
Subject: note 104012 modified in function.strtoupper by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179787@lists.php.net to get a copy of this message
This would be my short version for French characters: <?php function fullUpper($string){ return strtr(strtoupper($string), array( "à" => "À", "è" => "È", "ì" => "Ì", "ò" => "Ò", "ù" => "Ù", "á" => "Á", "é" => "É", "í" => "Í", "ó" => "Ó", "ú" => "Ú", "â" => "Â", "ê" => "Ê", "î" => "Î", "ô" => "Ô", "û" => "Û", "ç" => "Ç", )); } ?> --was-- This would be my short version for French characters: <code> function fullUpper($string){ return strtr(strtoupper($string), array( "à" => "À", "è" => "È", "ì" => "Ì", "ò" => "Ò", "ù" => "Ù", "á" => "Á", "é" => "É", "í" => "Í", "ó" => "Ó", "ú" => "Ú", "â" => "Â", "ê" => "Ê", "î" => "Î", "ô" => "Ô", "û" => "Û", "ç" => "Ç", )); } </code> http://php.net/manual/en/function.strtoupper.php

« previous php.notes (#179787) next »