note 89496 added to function.ctype-digit
| From: | alyATzabbixDOTcom at osu1 dot php dot net | Date: | Wed, 11 Mar 2009 09:03:08 +0000 |
| Subject: | note 89496 added to function.ctype-digit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151715@lists.php.net to get a copy of this message | ||
if as a parameter sent a type int, false will be returned! I use simple preg expression to check
string or int:
<?php
function zbx_ctype_digit($x){
return preg_match('/^\\d+$/',$x);
}
?>
----
Server IP: 81.94.227.69
Probable Submitter: 85.15.227.49
----
Manual Page -- http://www.php.net/manual/en/function.ctype-digit.php
Edit -- https://master.php.net/note/edit/89496
Del: integrated -- https://master.php.net/note/delete/89496/integrated
Del: useless -- https://master.php.net/note/delete/89496/useless
Del: bad code -- https://master.php.net/note/delete/89496/bad+code
Del: spam -- https://master.php.net/note/delete/89496/spam
Del: non-english -- https://master.php.net/note/delete/89496/non-english
Del: in docs -- https://master.php.net/note/delete/89496/in+docs
Del: other reasons-- https://master.php.net/note/delete/89496
Reject -- https://master.php.net/note/reject/89496
Search -- https://master.php.net/manage/user-notes.php