note 91682 added to function.strtolower
| From: | Khigashi at osu1 dot php dot net | Date: | Mon, 22 Jun 2009 21:53:51 +0000 |
| Subject: | note 91682 added to function.strtolower | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157253@lists.php.net to get a copy of this message | ||
Here is my code, I made because of the accents contained in the latin languages [like the Portuguese
of Brazil =)]
<?
function deepLower($texto){
//Letras minúsculas com acentos
$texto = strtr($texto, "
ÄÄÄÅÅÃÅŹŻABCDEFGHIJKLMNOPRSTUWYZQ
XVÐÐЦУÐÐÐÐШЩÐХЪФЫÐÐÐÐ ÐÐÐÐÐЯЧСÐÐТЬÐЮ
ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ
", "
Ä
ÄÄÅÅóÅźżabcdefghijklmnoprstuwyzq
xvÑйÑÑкенгÑÑзÑ
ÑÑÑвапÑолджÑÑÑÑмиÑÑбÑ
âà áäãêèéëîÃìïôõòóöûùúüç
");
return strtolower($texto);
}
?>
----
Server IP: 187.16.23.134
Probable Submitter: 187.37.112.223
----
Manual Page -- http://www.php.net/manual/en/function.strtolower.php
Edit -- https://master.php.net/note/edit/91682
Del: integrated -- https://master.php.net/note/delete/91682/integrated
Del: useless -- https://master.php.net/note/delete/91682/useless
Del: bad code -- https://master.php.net/note/delete/91682/bad+code
Del: spam -- https://master.php.net/note/delete/91682/spam
Del: non-english -- https://master.php.net/note/delete/91682/non-english
Del: in docs -- https://master.php.net/note/delete/91682/in+docs
Del: other reasons-- https://master.php.net/note/delete/91682
Reject -- https://master.php.net/note/reject/91682
Search -- https://master.php.net/manage/user-notes.php