Hello Christian,

Friday, April 16, 2004, 10:10:01 PM, you wrote:

> Derick Rethans wrote:
>> isset() works on a variable only too, so this behavior matches already
>> existing behavior.

> Hmm... this brings up another idea:
> Extend isset to have this behaviour. Funnily enough when I was thinking 
> about such a feature I wished I could call it isset. And now I realize 
> that we could:
> Extend isset to accept multiple arguments and make it return the value 
> of the first non-null it any.
> Backward compatible for everything but variations of the horrible
> if (isset($a) === true)

> This would lead to
> $a = isset($b, 'default');

You cannot do this because that syntax is already defined for PHP
with another semantic.

marcus

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

Reply via email to