Re: [PHP] Class Static variables in double quoted string or heredoc
[email protected] ("Eric Butera") Fri, 25 Apr 2008 14:28:42 -0400
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
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); ;)