On Tue, 2007-09-11 at 18:54 +0200, Marcus Boerger wrote:
> Hello Andrew,
> 
>   how about @<expression>?:<default> style?
> 
> Like: $val = $myarray[$key] ?: $default;

Did you mean like:

    @$val = $myarray[$key] ?: $default;

Because that's an expensive assignment since it will hit the error
handler when the index is not assigned. I thought the ifsetor system was
going to throttle undefined index notices for the left operand.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

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

Reply via email to