Re: what happened to that new isset() like language

From: Date: Thu, 08 Jul 2004 15:13:36 +0000
Subject: Re: what happened to that new isset() like language
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10981@lists.php.net to get a copy of this message
Jason Garber wrote:
What we basically settled on was to use this syntax (as a new language construct): $x = ifsetor(mixed variable, mixed default);
Before it gets forgotten: I still think that $x = ifsetor(mixed var, mixed var [, ...]); with expressions in all parts is the way to go. Example usage: $a = ifsetor($_REQUEST['x'], $db->get('x'), 'default_x'); This needs some work to disable warnings because of unset values inside the ifsetor() but would provide a lot of value. And I also think that the name ifsetor has to be reevaluated :-) - Chris

« previous php.internals (#10981) next »