note 78586 added to function.strtolower
| From: | rpsdotlobatgmaildotcom at osu1 dot php dot net | Date: | Thu, 18 Oct 2007 08:42:45 +0000 |
| Subject: | note 78586 added to function.strtolower | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131487@lists.php.net to get a copy of this message | ||
If you want to convert a cyrillic utf-8 string you may find next function usefull:
<?php
function utf8_tolower ($input_string)
{
$string = iconv('utf-8', 'windows-1251', $input_string);
$string = strtolower($string);
$string = iconv('windows-1251', 'utf-8', $string);
return $string;
}
?>
----
Server IP: 217.75.128.29
Probable Submitter: 87.246.63.226
----
Manual Page -- http://www.php.net/manual/en/function.strtolower.php
Edit -- https://master.php.net/note/edit/78586
Del: integrated -- https://master.php.net/note/delete/78586/integrated
Del: useless -- https://master.php.net/note/delete/78586/useless
Del: bad code -- https://master.php.net/note/delete/78586/bad+code
Del: spam -- https://master.php.net/note/delete/78586/spam
Del: non-english -- https://master.php.net/note/delete/78586/non-english
Del: in docs -- https://master.php.net/note/delete/78586/in+docs
Del: other reasons-- https://master.php.net/note/delete/78586
Reject -- https://master.php.net/note/reject/78586
Search -- https://master.php.net/manage/user-notes.php