Multiple conditions in an if statement

From: Date: Fri, 15 Mar 2002 21:39:18 +0000
Subject: Multiple conditions in an if statement
Groups: php.windows 
Request: Send a blank email to php-windows+get-12654@lists.php.net to get a copy of this message
I have a question about the efficiency of an if statement... Say you have the following statement, if ( $i == 6 && eregi ( "foo" , $bar ) ) { } And the first portion ( $i == 6 ) IS NOT true, does PHP even attempt to run the regular expression? Just wondering. Thanks, John --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Nullum magnum ingenium sine mixtura dementiae fuit

« previous php.windows (#12654) next »