note 57296 added to function.is-string

From: Date: Thu, 29 Sep 2005 17:35:33 +0000
Subject: note 57296 added to function.is-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-95991@lists.php.net to get a copy of this message
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... ;) ---- Manual Page -- http://www.php.net/manual/en/function.is-string.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57296 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57296&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57296&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95991) next »