Re: [PHP] Class Static variables in double quoted string or heredoc

[email protected] ("Nathan Nobbe") Fri, 25 Apr 2008 12:29:21 -0600
Newsgroups php.general
Message-ID <[email protected]>
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