note 57296 deleted from function.is-string by betz
| From: | betz@php.net | Date: | Thu, 29 Sep 2005 17:37:16 +0000 |
| Subject: | note 57296 deleted from function.is-string by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95992@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Quoting the above examples:
function is_upper($input) {
return ($input == strtoupper($input));
}
function is_lower($input) {
return ($input == strtolower($input));
}
Let me also add the is_stupid() function.
function is_stupid($input)
{
// Let's call strtoupper() twice just to waste
// time and CPU cycles.
if (! is_upper($input))
$input = strtoupper($input);
}
Just some fun PHP humor... ;)