note 28408 deleted from language.operators by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 00:04:52 +0000 |
| Subject: | note 28408 deleted from language.operators by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58364@lists.php.net to get a copy of this message | ||
Note Submitter: zontar@mindless.com
----
It would be really nice to see PHP support the logical comparison-with-assignment operators
&&= and ||=, e.g.
$a &&= $b;
rather than having to write
$a = $a && $b;
It seems a shame to omit when these when we already have support for +=, -=, &=, etc. Several
other languages do so and it's quite handy.
Just a thought.