Re: Check For Space
| From: | Marek Kilimajer | Date: | Wed, 02 Apr 2003 16:18:04 +0000 |
| Subject: | Re: Check For Space | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142000@lists.php.net to get a copy of this message | ||
if(strpos($string, ' ') === false) {
// space found} if you don't want any white character: if(ereg('\s',$string)) {
// white character found} shaun wrote:
Hi, How can i make sure a value sent from a form has no spaces in it?