Quoting Hartmut Holzgraefe <[EMAIL PROTECTED]>:

actualy in this special case i have been whishing for an operator for ages,
maybe a modification of the good old ternary:

$foo = ?$bar : "default";

or

$foo ?= "default";

If this were added, wouldn't it make sense to use the convention already adopted
by perl?


$foo |= 'default';

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to