note 65705 deleted from language.control-structures by googleguy
| From: | googleguy@php.net | Date: | Fri, 11 Jan 2013 09:43:13 +0000 |
| Subject: | note 65705 deleted from language.control-structures by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192925@lists.php.net to get a copy of this message | ||
Note Submitter: dougnoel
----
Further response to Niels:
It's not laziness, it's optimization. It saves CPUs cycles. However, it's good to
know, as it allows you to optimize your code when writing. For example, when determining if someone
has permissions to delete an object, you can do something like the following:
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.