note 91682 modified in function.strtolower by danbrown
| From: | danbrown@php.net | Date: | Tue, 23 Jun 2009 02:25:10 +0000 |
| Subject: | note 91682 modified in function.strtolower by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157255@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 =)]
<?php
function deepLower($texto){
//Letras minúsculas com acentos
$texto = strtr($texto, "
ÄÄÄÅÅÃÅŹŻABCDEFGHIJKLMNOPRSTUWYZQ
XVÐÐЦУÐÐÐÐШЩÐХЪФЫÐÐÐÐ ÐÐÐÐÐЯЧСÐÐТЬÐЮ
ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ
", "
Ä
ÄÄÅÅóÅźżabcdefghijklmnoprstuwyzq
xvÑйÑÑкенгÑÑзÑ
ÑÑÑвапÑолджÑÑÑÑмиÑÑбÑ
âà áäãêèéëîÃìïôõòóöûùúüç
");
return strtolower($texto);
}
?>
--was--
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);
}
?>
http://php.net/manual/en/function.strtolower.php