On Fri, Apr 25, 2008 at 12:28 PM, Eric Butera <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <[EMAIL PROTECTED]> > 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