note 82974 deleted from control-structures.if by googleguy

From: Date: Mon, 25 Mar 2013 01:31:45 +0000
Subject: note 82974 deleted from control-structures.if by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194192@lists.php.net to get a copy of this message
Note Submitter: henryk dot kwak at gmail dot com ---- When you use if command with many condidions like if ( expr1 && expr2 && expr3 && etc. ) it is more effective to put expressions in special order Firstly you should put that, which has the biggest probability to occur. This is because PHP checks each condition in order from left to right and it takes some time to check each condition.

« previous php.notes (#194192) next »