note 85105 added to control-structures.if
| From: | jchau at bu dot edu | Date: | Thu, 14 Aug 2008 17:50:26 +0000 |
| Subject: | note 85105 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143504@lists.php.net to get a copy of this message | ||
RE: henryk dot kwak at gmail dot com's comment from 04-May-2008 05:01
I think you made a mistake.
For maximum efficiency, assuming each expression requires the same amount of processing, the
expression that is least likely to be true should come first for expressions connected by &&
(and). This will reduce the probability that later expressions will need to be evaluated.
The opposite is true for || (or). If the most likely expression comes first, then the probability
of needing to evaluate later expressions is reduced.
----
Server IP: 69.147.83.197
Probable Submitter: 128.197.53.36
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/85105
Del: integrated -- https://master.php.net/note/delete/85105/integrated
Del: useless -- https://master.php.net/note/delete/85105/useless
Del: bad code -- https://master.php.net/note/delete/85105/bad+code
Del: spam -- https://master.php.net/note/delete/85105/spam
Del: non-english -- https://master.php.net/note/delete/85105/non-english
Del: in docs -- https://master.php.net/note/delete/85105/in+docs
Del: other reasons-- https://master.php.net/note/delete/85105
Reject -- https://master.php.net/note/reject/85105
Search -- https://master.php.net/manage/user-notes.php