If you want to use ereg just [:space:] ... I'm not too sure about what to do
with the Perl one.

"Justin French" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> 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
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to