note 58171 added to function.strtoupper
| From: | Chrobak | Date: | Wed, 26 Oct 2005 14:08:36 +0000 |
| Subject: | note 58171 added to function.strtoupper | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97621@lists.php.net to get a copy of this message | ||
My own kind of this function for czechs, there are some special chars, it is n00b function but
really useful.
<?php
function tolower($string)
{
$big="ABCDEFGHIJKLMNOPQRSTUVWXYZĚČŘÝÁÍÉ";
$small="abcdefghijklmnopqrstuvwxyzěčřýáíé";
$count=strlen($big)-1;
for($i=0;$i<=$count;$i++)
{
$string=str_replace($big[$i],$small[$i],$string);
}
return $string;
}
function toupper($string)
{
$big="ABCDEFGHIJKLMNOPQRSTUVWXYZĚČŘÝÁÍÉ";
$small="abcdefghijklmnopqrstuvwxyzěčřýáíé";
$count=strlen($small)-1;
for($i=0;$i<=$count;$i++)
{
$string=str_replace($small[$i],$big[$i],$string);
}
return $string;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.strtoupper.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58171
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58171&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58171&report=yes
Search -- http://master.php.net/manage/user-notes.php