Re: Class Static variables in double quoted string or heredoc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 25, 2008 at 12:28 PM, Eric Butera <eric.butera@xxxxxxxxx> wrote:

> On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <quickshiftin@xxxxxxxxx>
> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux