Re: variable if statement

From: Date: Thu, 23 Aug 2001 17:22:54 +0000
Subject: Re: variable if statement
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11734@lists.php.net to get a copy of this message
----- Original Message ----- From: Brian Weisenthal <bsw10@cornell.edu> To: <php-db@lists.php.net> Sent: Friday, August 24, 2001 1:14 AM Subject: [PHP-DB] variable if statement > i want to do something like this: > > $string="($a==1) OR ($b==2)"; > > if ($string) { do something ; } > > any ideas? i tried using if (eval($string)) but that just gave me errors. $string = (($a == 1) OR ($b == 2)); regards -- Jason Wong Gremlins Associates www.gremlins.com.hk

« previous php.db (#11734) next »