Re: sticky checkbox - strpos

From: Date: Wed, 08 Feb 2012 16:17:53 +0000
Subject: Re: sticky checkbox - strpos
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-316557@lists.php.net to get a copy of this message
>> if (!strpos($t_product,$t_p)) {print "checked";} It could have something to do with the function returning 0 because it's finding the comma in the 0 index, but it's not really false, it's still finding the string. I've run into a similar problem before... Marc

« previous php.general (#316557) next »