Re: [RFC] ifsetor operator

From: Date: Sat, 17 Apr 2004 10:51:35 +0000
Subject: Re: [RFC] ifsetor operator
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-9323@lists.php.net to get a copy of this message
In the hope that joining the discussion as a non-developer isn't considered rude behaviour... > Wez wrote: > Derick wrote: > > Other possibilities: > > > > ifset > > default > > default is already used in switch Just another idea for you internals guys: $foo = firstset($bar, $baz [, $quux [, ...]]); Assigns the first isset arg to $foo. This would make one nice use of Sascha's GCC style suggestion possible: $foo = $bar ?: $baz ?: $quux; But personally, I would prefer the GCC style syntax. Hans

« previous php.internals (#9323) next »