note 65705 added to language.control-structures

From: Date: Sat, 06 May 2006 01:29:24 +0000
Subject: note 65705 added to language.control-structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-110673@lists.php.net to get a copy of this message
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. ---- Server IP: 66.163.161.117 Probable Submitter: 64.203.157.24 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.control-structures.php Edit -- http://master.php.net/note/edit/65705 Del: integrated -- http://master.php.net/note/delete/65705/integrated Del: useless -- http://master.php.net/note/delete/65705/useless Del: bad code -- http://master.php.net/note/delete/65705/bad+code Del: spam -- http://master.php.net/note/delete/65705/spam Del: non-english -- http://master.php.net/note/delete/65705/non-english Del: in docs -- http://master.php.net/note/delete/65705/in+docs Del: other reasons-- http://master.php.net/note/delete/65705 Reject -- http://master.php.net/note/reject/65705 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110673) next »