Re: [PHP] Re: Quickly verifying single word.
- Date: Thu, 05 Jun 2008 11:32:46 +0200
- From: Per Jessen <per@xxxxxxxxxxxx>
- Subject: Re: [PHP] Re: Quickly verifying single word.
Usamah M. Ali wrote:
> According to your needs, it could be simply shortened to the first if:
> if (preg_match('/\s+/i', $string) === 0)
> {
> echo 'No white spaces';
> }
And you could even remove the '+'.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- References:
- [PHP] Quickly verifying single word.
- From: Tyson Vanover
- [PHP] Re: Quickly verifying single word.
- From: Shawn McKenzie
- [PHP] Re: Quickly verifying single word.
- From: Shawn McKenzie
- Re: [PHP] Re: Quickly verifying single word.
- From: Per Jessen
- Re: [PHP] Re: Quickly verifying single word.
- From: Usamah M. Ali
- Re: [PHP] Re: Quickly verifying single word.
- From: Usamah M. Ali
- [PHP] Quickly verifying single word.
- Prev by Date: Re: [PHP] Regex in PHP
- Next by Date: Re: [PHP] mail() error handling
- Previous by thread: Re: [PHP] Re: Quickly verifying single word.
- Next by thread: [PHP] Are there free http mysql tunneling writed in php ?
- Index(es):