Re: if $char == "any form of white space"

From: Date: Sun, 21 Jul 2002 23:49:59 +0000
Subject: Re: if $char == "any form of white space"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108774@lists.php.net to get a copy of this message
If you want to use ereg just [:space:] ... I'm not too sure about what to do with the Perl one. "Justin French" <justin@indent.com.au> wrote in message news:B96059E8.AF67%justin@indent.com.au... > 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 >

« previous php.general (#108774) next »