|
Posted by Oli Filth on 06/02/05 03:07
Nullcode said the following on 02/06/2005 01:00:
> Im using ctype functions for validation of form input, for speed and
> ease of use.
>
> What I was wondering, is whats the deal with whitespace ? it would
> appear that ctype_alnum() for example, returns false if there is a space
> in the string. Is this correct ? thx
Yes. From the manual:
"Returns TRUE if every character in text is either a letter or a digit,
FALSE otherwise. In the standard C locale letters are just [A-Za-z] and
the function is equivalent to preg_match('/^[a-z0-9]*$/i', $text)."
--
Oli
Navigation:
[Reply to this message]
|