Olivier Hill wrote:
Marc Richards wrote:
What? Why? There is obviously a way around it, because that is what people are using now.
$a = $b ? $b : $c;
If $b is not set, it will throw notices.
The correct way is something similar to:
$a = (!isset($b) && !isnull($b)) ? $b : $c
Right. Sorry. I meant.
$a = isset($b) ? $b : $c;
But my point is that you won't be FORCED to use the new operator, just like you aren't FORCED to use +=.
Marc
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php