note 61414 added to function.strtoupper
| From: | h3 at valleyfield | Date: | Thu, 02 Feb 2006 21:41:42 +0000 |
| Subject: | note 61414 added to function.strtoupper | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102894@lists.php.net to get a copy of this message | ||
I've modified the code of Indio to recreate the C functions isupper and islower.. pretty simple
and clean, as you can see;
<?php
function isupper($i) { return (strcmp(strtoupper($i),$i)==0)?true:false; }
function islower($i) { return (strcmp(strtolower($i),$i)==0)?true:false; }
?>
cheers.
----
Server IP: 66.207.199.35
Probable Submitter: 70.51.186.17
----
Manual Page -- http://www.php.net/manual/en/function.strtoupper.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61414
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61414&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61414&report=yes
Search -- http://master.php.net/manage/user-notes.php