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

From: Date: Thu, 08 Jul 2004 21:54:59 +0000
Subject: Re: what happened to that new isset() like language construct
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-10992@lists.php.net to get a copy of this message
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

« previous php.internals (#10992) next »