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

From: Date: Thu, 08 Jul 2004 23:13:28 +0000
Subject: Re: what happened to that new isset() like language construct
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-11000@lists.php.net to get a copy of this message
Marcus Boerger wrote:
it would allow two versions by having the default optional: 1) $a = ifsetor($b) 2) $a = ifsetor($b, NULL)
$a = $b ?: NULL;
How would the operator do the second? Will it look like the following? $a = $b ?:; I defitively don't want that.
Me either. What I am saying is that there is no need for two versions. $a = $b ?: NULL; is as concise as the first version, and as explicit (in terms of the NULL) as the second. Marc

« previous php.internals (#11000) next »