note 104012 modified in function.strtoupper by danbrown
| From: | danbrown@php.net | 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