[PHP] Quickly verifying single word.
- Date: Wed, 04 Jun 2008 16:04:45 -0700
- From: Tyson Vanover <tvanover@xxxxxxx>
- Subject: [PHP] Quickly verifying single word.
I need a quick way to make sure that a string is a single word with no white spaces. I would prefer that it is a command that could fit on a single line. Or at least an if block.
I have a few thoughts on this but it involves things like explode(), stripslashes(), etc.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- [PHP] Re: Quickly verifying single word.
- From: Shawn McKenzie
- Re: [PHP] Quickly verifying single word.
- From: Ted Wood
- [PHP] Re: Quickly verifying single word.
- Prev by Date: [PHP] Objects and Traversing
- Next by Date: Re: [PHP] Objects and Traversing
- Previous by thread: [PHP] Objects and Traversing
- Next by thread: Re: [PHP] Quickly verifying single word.
- Index(es):