note 62532 deleted from language.operators.bitwise by bjori
| From: | bjori@php.net | Date: | Thu, 02 Mar 2006 15:55:39 +0000 |
| Subject: | note 62532 deleted from language.operators.bitwise by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-104720@lists.php.net to get a copy of this message | ||
Note Submitter: aukebruinsma at gmx dot net
Reason: bad code
----
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.