note 107096 modified in function.strtoupper by danbrown
| From: | danbrown@php.net | Date: | Fri, 06 Jan 2012 19:05:35 +0000 |
| Subject: | note 107096 modified in function.strtoupper by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185394@lists.php.net to get a copy of this message | ||
Simple function for uppercase encoding of croatian text! :)
<?php
function strtoupper_hr($a) {
return strtr(mb_strtoupper($a, "utf-8"), array(
" Å¡" => " Å ",
" Ä" => " Ä",
" ž" => " Ž",
" Ä" => " Ä",
" Ä" => " Ä"
));
}
?>
--was--
Simple function for uppercase encoding of croatian text! :)
function strtoupper_hr($a) {
return strtr(mb_strtoupper($a, "utf-8"), array(
" Å¡" => " Å ",
" Ä" => " Ä",
" ž" => " Ž",
" Ä" => " Ä",
" Ä" => " Ä"
));
}
http://php.net/manual/en/function.strtoupper.php