Re: Bug in Ereg?

From: Date: Fri, 15 Aug 2003 22:55:38 +0000
Subject: Re: Bug in Ereg?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159770@lists.php.net to get a copy of this message
Kris Yates wrote:
       if(ereg("color-", $ThisVar) AND $ThisVal=="on" OR $ThisVal==1){
this condition reads
if( (ereg("color-", $ThisVar) AND $ThisVal=="on") OR $ThisVal==1) It is called operator precedence. www.php.net/manual/en/language.operators.html#language.operators.precedence You have POST var with value of 1 somewhere before.

« previous php.general (#159770) next »