<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/Ternary</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 08:31:56 GMT</pubDate>
<item>
<title>(Java) Java Ternary operator associativity demo - m1b</title>
<link>http://snipplr.com/view/58095/java-ternary-operator-associativity-demo/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 23 Aug 2011 06:56:01 GMT</pubDate>
<guid>http://snipplr.com/view/58095/java-ternary-operator-associativity-demo/</guid>
</item>
<item>
<title>(PHP) Super-short PHP Even / Odd Alternator - mindshare</title>
<link>http://snipplr.com/view/54760/supershort-php-even--odd-alternator/</link>
<description><![CDATA[ <p>Use this to add alternating rows in PHP.</p> ]]></description>
<pubDate>Thu, 02 Jun 2011 08:10:09 GMT</pubDate>
<guid>http://snipplr.com/view/54760/supershort-php-even--odd-alternator/</guid>
</item>
<item>
<title>(PHP) MySQL Search/Category Filter - mattneary</title>
<link>http://snipplr.com/view/47702/mysql-searchcategory-filter/</link>
<description><![CDATA[ <p>I thought this was pretty elegant code and wanted to share it with anyone who found it useful.</p> ]]></description>
<pubDate>Sat, 22 Jan 2011 09:09:34 GMT</pubDate>
<guid>http://snipplr.com/view/47702/mysql-searchcategory-filter/</guid>
</item>
<item>
<title>(PHP) PHP Ternary - resting</title>
<link>http://snipplr.com/view/42333/php-ternary/</link>
<description><![CDATA[ <p>Just a ternary example.

Note the parentheses.</p> ]]></description>
<pubDate>Fri, 15 Oct 2010 13:00:03 GMT</pubDate>
<guid>http://snipplr.com/view/42333/php-ternary/</guid>
</item>
<item>
<title>(PHP) Simple Variable Handler - cessnajumpin</title>
<link>http://snipplr.com/view/29843/simple-variable-handler/</link>
<description><![CDATA[ <p>Could be used across a multitude of languages. What this does is check to see if a variable is set, if it is then the variable gets left alone. If not, you define what it defaults to.

The example takes the variable $myFruit, and if it's already been defined it stays as that fruit. If not, then it is defined as the string "apple".</p> ]]></description>
<pubDate>Tue, 16 Mar 2010 16:16:00 GMT</pubDate>
<guid>http://snipplr.com/view/29843/simple-variable-handler/</guid>
</item>
</channel>
</rss>