Re: [suspicious - maybe spam] detecting a leading hyphen from post data

From: Date: Sun, 20 Mar 2005 17:55:26 +0000
Subject: Re: [suspicious - maybe spam] detecting a leading hyphen from post data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211137@lists.php.net to get a copy of this message
try use : if (strpos($string,"-")==0) //first char is index 0 not 1 ! or if (strpos($string,"-")!==false) //find anywhere in string

« previous php.general (#211137) next »