note 69737 deleted from function.ctype-alnum by colder
| From: | colder@php.net | Date: | Fri, 23 Feb 2007 12:33:33 +0000 |
| Subject: | note 69737 deleted from function.ctype-alnum by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123756@lists.php.net to get a copy of this message | ||
Note Submitter: fisher at SPAMMENOT dot spadgos dot com
----
Be careful of the type of the parameter you pass to this, as it can have strange results...
<?php
// integers
ctype_alnum(1); // false
ctype_alnum(0); // false
ctype_alnum(-1); // true
// strings
ctype_alnum("1"); // true
ctype_alnum("0"); // true
ctype_alnum("-1"); // false
?>
Using PHP 4.3.11 on Windows/Apache