if $char == "any form of white space"
| From: | Justin French | Date: | Sun, 21 Jul 2002 02:30:32 +0000 |
| Subject: | if $char == "any form of white space" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108688@lists.php.net to get a copy of this message | ||
Is this the best way to check if a $char is ANY FORM OF WHITESPACE (space,
\t, \r, \n, etc etc)?
if(preg_match('/\s/', $char))
{
...
}
??
Thanks
Justin