<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: PHP Switch case behavior: ranges</title>
	<atom:link href="http://somejunkwelike.com/wordpress/2005/02/21/php-switch-case-behavior-ranges/feed/" rel="self" type="application/rss+xml" />
	<link>http://somejunkwelike.com/wordpress/2005/02/21/php-switch-case-behavior-ranges/</link>
	<description>some junk we like</description>
	<pubDate>Sat, 11 Oct 2008 13:39:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: steve cooley</title>
		<link>http://somejunkwelike.com/wordpress/2005/02/21/php-switch-case-behavior-ranges/#comment-87884</link>
		<dc:creator>steve cooley</dc:creator>
		<pubDate>Fri, 30 May 2008 21:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://earthorbitdesign.com/wordpress/?p=932#comment-87884</guid>
		<description>nicely done. :)</description>
		<content:encoded><![CDATA[<p>nicely done. <img src='http://somejunkwelike.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suzza</title>
		<link>http://somejunkwelike.com/wordpress/2005/02/21/php-switch-case-behavior-ranges/#comment-87790</link>
		<dc:creator>suzza</dc:creator>
		<pubDate>Thu, 29 May 2008 12:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://earthorbitdesign.com/wordpress/?p=932#comment-87790</guid>
		<description>switch($var)
	{
	case $var&#60;=9:
		{
		echo "less than ten";
		break;
		}</description>
		<content:encoded><![CDATA[<p>switch($var)<br />
	{<br />
	case $var&lt;=9:<br />
		{<br />
		echo &#8220;less than ten&#8221;;<br />
		break;<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suzza</title>
		<link>http://somejunkwelike.com/wordpress/2005/02/21/php-switch-case-behavior-ranges/#comment-87789</link>
		<dc:creator>suzza</dc:creator>
		<pubDate>Thu, 29 May 2008 12:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://earthorbitdesign.com/wordpress/?p=932#comment-87789</guid>
		<description>switch($var)
	{
	case $var10  &#60;15: though...</description>
		<content:encoded><![CDATA[<p>switch($var)<br />
	{<br />
	case $var10  &lt;15: though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Cabrera</title>
		<link>http://somejunkwelike.com/wordpress/2005/02/21/php-switch-case-behavior-ranges/#comment-64349</link>
		<dc:creator>Marc Cabrera</dc:creator>
		<pubDate>Fri, 30 Nov 2007 15:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://earthorbitdesign.com/wordpress/?p=932#comment-64349</guid>
		<description>Actually this won't work, just tested.  Try this instead:

switch ( True )  {
	case  ($tmpVar == 729 &#38;&#38; $intVal&#60;= 20):
		echo 21;
		break;
	case  ($tmpVar == 829 &#38;&#38; $intVal&#60;= 20):
		echo 22;
		break;
	case  ($tmpVar == 729 &#38;&#38; $intVal &#60;= 40):
		echo 40;
		break;
}</description>
		<content:encoded><![CDATA[<p>Actually this won&#8217;t work, just tested.  Try this instead:</p>
<p>switch ( True )  {<br />
	case  ($tmpVar == 729 &amp;&amp; $intVal&lt;= 20):<br />
		echo 21;<br />
		break;<br />
	case  ($tmpVar == 829 &amp;&amp; $intVal&lt;= 20):<br />
		echo 22;<br />
		break;<br />
	case  ($tmpVar == 729 &amp;&amp; $intVal &lt;= 40):<br />
		echo 40;<br />
		break;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
