Re: Re: [RFC] ifsetor operator
| From: | Christian Schneider | Date: | Fri, 16 Apr 2004 20:24:44 +0000 |
| Subject: | Re: Re: [RFC] ifsetor operator | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9284@lists.php.net to get a copy of this message | ||
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