note 62532 added to language.operators.bitwise
| From: | aukebruinsma at gmx dot net | Date: | Thu, 02 Mar 2006 15:43:56 +0000 |
| Subject: | note 62532 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104716@lists.php.net to get a copy of this message | ||
2 posts or so an unnamed on says there was a shorter way for:
<?php
if ( $a == $b && $a == $c && $a == $d && $b == $c && $b == $d
&& $c == $d ) {
[...]
?>
Well its true its:
<?php
if ( $a == $b && $a == $c && $a == $d) {
[...]
?>
cuz if a == b and a == c and a == d, b must be the same as c and c must be the same as d etc.
But the solution provided is not correct as stated by some else.
----
Server IP: 194.109.193.119
Probable Submitter: 80.127.205.178
----
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.operators.bitwise.php
Edit -- http://master.php.net/note/edit/62532
Del: integrated -- http://master.php.net/note/delete/62532/integrated
Del: useless -- http://master.php.net/note/delete/62532/useless
Del: bad code -- http://master.php.net/note/delete/62532/bad+code
Del: spam -- http://master.php.net/note/delete/62532/spam
Del: non-english -- http://master.php.net/note/delete/62532/non-english
Del: in docs -- http://master.php.net/note/delete/62532/in+docs
Del: other reasons-- http://master.php.net/note/delete/62532
Reject -- http://master.php.net/note/reject/62532
Search -- http://master.php.net/manage/user-notes.php