note 73757 deleted from language.control-structures by mgf
| From: | mgf@php.net | Date: | Thu, 28 Aug 2008 14:56:52 +0000 |
| Subject: | note 73757 deleted from language.control-structures by mgf | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143943@lists.php.net to get a copy of this message | ||
Note Submitter: captainf
----
@mongoose643
dougnoel was actually trying to provide a good example of how the if function automatically
evaluates to false and goes no further if the first condition in an if expression fails can be used
to optimize a script. In his example not everyone is an admin, and not all admins can delete. In his
script it is an optimized failsafe to check if someone is an admin and has delete permissions while
not wasting script time.