Re: How to identify a string with only a space.

From: Date: Mon, 10 Jul 2000 20:57:41 +0000
Subject: Re: How to identify a string with only a space.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5807@lists.php.net to get a copy of this message
At 22:28 10.07.00 +0200, you wrote:
Hi guys, Once again a question; how can i identify a string which has only a space (" ") in it? Thanks, Jeroen
if($string == ' ') { do something; } or if($string == " ") { do something or switch($string) /* only if there´s only ONE value in */ {
        case ' ' : do something; break;
} Somone else a suggestion ? Oliver

« previous php.general (#5807) next »