note 28408 added to language.operators
| From: | zontar at mindless dot com | Date: | Sun, 12 Jan 2003 06:24:32 +0000 |
| Subject: | note 28408 added to language.operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42016@lists.php.net to get a copy of this message | ||
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.
--
http://www.php.net/manual/en/language.operators.php
http://master.php.net/manage/user-notes.php?action=edit+28408
http://master.php.net/manage/user-notes.php?action=delete+28408
http://master.php.net/manage/user-notes.php?action=reject+28408