#36074 [WFx]: Offer to upgrade ctype_alnum() function

From: Date: Thu, 19 Jan 2006 12:09:04 +0000
Subject: #36074 [WFx]: Offer to upgrade ctype_alnum() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92187@lists.php.net to get a copy of this message
ID: 36074 User updated by: 10cent at mail dot ru Reported By: 10cent at mail dot ru Status: Wont fix Bug Type: Feature/Change Request Operating System: all PHP Version: 5.1.2 New Comment: I can't find isalnum() function in manual. Previous Comments: ------------------------------------------------------------------------ [2006-01-18 23:49:43] tony2001@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#92187) next »