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);

;)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to