Re: Class Static variables in double quoted string or heredoc

From: Date: Fri, 25 Apr 2008 18:29:21 +0000
Subject: Re: Class Static variables in double quoted string or heredoc
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-273592@lists.php.net to get a copy of this message
On Fri, Apr 25, 2008 at 12:28 PM, Eric Butera <eric.butera@gmail.com> wrote: > On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <quickshiftin@gmail.com> > wrote: > > want to know a syntactic sugar feature i avoid like the plague, its the > > ternary operator! > > Like this? > > return (!is_dir($indexPath)) > ? Zend_Search_Lucene::create($indexPath) > : Zend_Search_Lucene::open($indexPath); > > ;) > u got it ;) -nathan

« previous php.general (#273592) next »