>$x ? xxx : xxx > >But it makes your code less readable IMHO and offers no tangible benefit >whatsoever.
It offers the tangible benefit of evaluating to something: return (isset($foo) ? $foo : $bar); $query = "select * from foo" .(isset($bar) ? " where bar = ${bar}" : ''); $foo = ((count($bar) > 1) ? 'bars' : 'bar); --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php