variable if statement

From: Date: Thu, 23 Aug 2001 17:14:37 +0000
Subject: variable if statement
Groups: php.db 
Request: Send a blank email to php-db+get-11732@lists.php.net to get a copy of this message
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. thanks

« previous php.db (#11732) next »