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

Ok, missed that one, I never used multiple arguments to isset ;-)


Let's call it ifsetor, ifset or default then. But I still think allowing a list of expressions is a good idea because both
$a = ifsetor($db->get('x'), 'default_x');
and
$a = ifsetor($_REQUEST['x'], $db->get('x'), 'default_x');
make perfect sense IMHO.


- Chris

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



Reply via email to