Quickly verifying single word.
| From: | Tyson Vanover | Date: | Wed, 04 Jun 2008 23:04:45 +0000 |
| Subject: | Quickly verifying single word. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-275032@lists.php.net to get a copy of this message | ||
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.