#36074 [Opn->WFx]: Offer to upgrade ctype_alnum() function
| From: | tony2001@php.net | Date: | Wed, 18 Jan 2006 22:49:44 +0000 |
| Subject: | #36074 [Opn->WFx]: Offer to upgrade ctype_alnum() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92156@lists.php.net to get a copy of this message | ||
ID: 36074
Updated by: tony2001@php.net
Reported By: 10cent at mail dot ru
-Status: Open
+Status: Wont fix
-Bug Type: Unknown/Other Function
+Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5.1.2
New Comment:
No need to duplicate functionality 100+ times.
Also, isalnum() function (which is actually stands behind the
ctype_alnum()) doesn't have such parameters - see
man isalnum.
Previous Comments:
------------------------------------------------------------------------
[2006-01-18 23:22:18] 10cent at mail dot ru
Description:
------------
I think, that's good idea to add the second parameter to ctype_alnum()
function.
See: bool ctype_alnum ( string text [, string register] )
Default "i". Also may be "u" and "l".
i - ignore register
u - uppercase
l - lowercase
ctype_alnum($string, "i") equivalent preg_match("/^[0-9A-z]*$/",
$string)
ctype_alnum($string, "u") equivalent preg_match("/^[0-9A-Z]*$/",
$string)
ctype_alnum($string, "l") equivalent preg_match("/^[0-9a-z]*$/",
$string)
Sorry for my bad english.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36074&edit=1