<?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文には関数が使える</title>
	<atom:link href="http://blog.zuzara.com/2006/06/14/85/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zuzara.com/2006/06/14/85/</link>
	<description>技術系の話題をいじる、感動する、つくる、に分けてつらつら。</description>
	<pubDate>Wed, 07 Jan 2009 01:53:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Dragonfly</title>
		<link>http://blog.zuzara.com/2006/06/14/85/#comment-839</link>
		<dc:creator>Dragonfly</dc:creator>
		<pubDate>Thu, 15 Jun 2006 23:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zuzara.com/2006/06/14/85/#comment-839</guid>
		<description>&lt;strong&gt;コードがすっきり！PHPのswitchのcase文には関数が使える...&lt;/strong&gt;

zuzara.com � PHPのswitchのcase文には関数が使えるswi...</description>
		<content:encoded><![CDATA[<p><strong>コードがすっきり！PHPのswitchのcase文には関数が使える&#8230;</strong></p>
<p>zuzara.com � PHPのswitchのcase文には関数が使えるswi&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: funaki</title>
		<link>http://blog.zuzara.com/2006/06/14/85/#comment-823</link>
		<dc:creator>funaki</dc:creator>
		<pubDate>Wed, 14 Jun 2006 11:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zuzara.com/2006/06/14/85/#comment-823</guid>
		<description>なるほど。
コメントありがとうございますー。switch(true)って面白いですね。</description>
		<content:encoded><![CDATA[<p>なるほど。<br />
コメントありがとうございますー。switch(true)って面白いですね。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nazoking</title>
		<link>http://blog.zuzara.com/2006/06/14/85/#comment-819</link>
		<dc:creator>nazoking</dc:creator>
		<pubDate>Wed, 14 Jun 2006 08:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zuzara.com/2006/06/14/85/#comment-819</guid>
		<description>うーん、これって、$test と関数が適用された結果（サンプルだと true &#124;&#124; false ）が == で比較されて、その結果が trueなら case文が成立したとみてるんじゃないでしょうか？

$test = 0; // boolean値に自動変換されるときは false
で試すと、最初の ($test &#62; 10) =&#62; false とマッチしてしまいます。

switch(true){ case ($test &#62; 10): .... }
とか書いたほうがよいかと。</description>
		<content:encoded><![CDATA[<p>うーん、これって、$test と関数が適用された結果（サンプルだと true || false ）が == で比較されて、その結果が trueなら case文が成立したとみてるんじゃないでしょうか？</p>
<p>$test = 0; // boolean値に自動変換されるときは false<br />
で試すと、最初の ($test &gt; 10) =&gt; false とマッチしてしまいます。</p>
<p>switch(true){ case ($test &gt; 10): &#8230;. }<br />
とか書いたほうがよいかと。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
