note 70933 deleted from language.control-structures by felipe

From: Date: Mon, 10 Dec 2007 18:36:28 +0000
Subject: note 70933 deleted from language.control-structures by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133292@lists.php.net to get a copy of this message
Note Submitter: simplyduh ---- dougnoel, you are wrong recarding optimization: > if ($is_admin && $has_delete_permissions) > If only an admin can have those permissions, there's no > need to check for the permissions if the user is not an admin. Duh, both are booleans in the above case, and its obvious that checking one boolean is better than checking 2. if ($has_delete_permissions) would work better :)

« previous php.notes (#133292) next »