ID: 12930 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: FreeBSD PHP Version: 4.0.6 New Comment:
because && and || always return boolean values, this wouldn't do what you want. (and suggestions to make && and || be value-preserving instead of returning booleans has been shot down already.) Previous Comments: ------------------------------------------------------------------------ [2001-08-23 12:40:06] [EMAIL PROTECTED] Just a feature request for &&= and ||= operators as shortcuts for the logical equivalent of "$var && $var = 'val'". eg: <? $a = ''; $a ||= "default"; print $a; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12930&edit=1