note 54752 added to function.ctype-upper
| From: | php-general at lists dot php dot net | Date: | Thu, 14 Jul 2005 11:22:38 +0000 |
| Subject: | note 54752 added to function.ctype-upper | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91952@lists.php.net to get a copy of this message | ||
pitty, there is no function to do the same with numbers and spaces
I offer this function
isSpaceAndNumeric( $testStr )
{
return ereg_match( $testStr, "/^"."\A[\d\s]++"."/i" );
}
explanation:
this function start scanning from string begining, then mathes all digit and space characters from 1
to any number of occurence times.
----
Manual Page -- http://www.php.net/manual/en/function.ctype-upper.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54752
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54752&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54752&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54752&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54752&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54752&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54752&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54752&report=yes
Search -- http://master.php.net/manage/user-notes.php