Bug #12930: request for &&= and ||= operators
| From: | pgl at instinct dot org | Date: | Thu, 23 Aug 2001 16:40:06 +0000 |
| Subject: | Bug #12930: request for &&= and ||= operators | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64180@lists.php.net to get a copy of this message | ||
From: pgl@instinct.org
Operating system: FreeBSD
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: request for &&= and ||= operators
Just a feature request for &&= and ||= operators as shortcuts for the
logical equivalent of "$var && $var = 'val'".
eg:
<?
$a = '';
$a ||= "default";
print $a;
?>
--
Edit bug report at: http://bugs.php.net/?id=12930&edit=1