note 73757 added to language.control-structures

From: Date: Fri, 09 Mar 2007 03:53:33 +0000
Subject: note 73757 added to language.control-structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-124256@lists.php.net to get a copy of this message
@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. ---- Server IP: 216.194.113.175 Probable Submitter: 70.108.66.112 ---- Manual Page -- http://www.php.net/manual/en/language.control-structures.php Edit -- https://master.php.net/note/edit/73757 Del: integrated -- https://master.php.net/note/delete/73757/integrated Del: useless -- https://master.php.net/note/delete/73757/useless Del: bad code -- https://master.php.net/note/delete/73757/bad+code Del: spam -- https://master.php.net/note/delete/73757/spam Del: non-english -- https://master.php.net/note/delete/73757/non-english Del: in docs -- https://master.php.net/note/delete/73757/in+docs Del: other reasons-- https://master.php.net/note/delete/73757 Reject -- https://master.php.net/note/reject/73757 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124256) next »