Marcus Boerger wrote:
?: would require a default value. ifsetor() allows to assume NULL hence the latter is more powerfull. Hence id like to see a new keyword.
Well am not sure what you mean by more powerful, but the character count is about the same:
$a = ifsetor($b);
$a = $b ?: NULL;
And the second one has the advantage of being more verbose.
Marc
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php