<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PHP Forums - if and else]]></title>
		<link>http://phpforums.org/topic5-if-and-else.html</link>
		<description><![CDATA[The most recent posts in if and else.]]></description>
		<lastBuildDate>Wed, 07 Oct 2009 15:15:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: if and else]]></title>
			<link>http://phpforums.org/post22.html#p22</link>
			<description><![CDATA[<p>if you have any other questions please feel free to post &#039;em here or in a new thread.</p><p>-John</p>]]></description>
			<author><![CDATA[null@example.com (jaydesigns)]]></author>
			<pubDate>Wed, 07 Oct 2009 15:15:19 +0000</pubDate>
			<guid>http://phpforums.org/post22.html#p22</guid>
		</item>
		<item>
			<title><![CDATA[Re: if and else]]></title>
			<link>http://phpforums.org/post20.html#p20</link>
			<description><![CDATA[<p>thanks&nbsp; <img src="http://phpforums.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (manif3sto)]]></author>
			<pubDate>Sun, 04 Oct 2009 23:27:48 +0000</pubDate>
			<guid>http://phpforums.org/post20.html#p20</guid>
		</item>
		<item>
			<title><![CDATA[Re: if and else]]></title>
			<link>http://phpforums.org/post19.html#p19</link>
			<description><![CDATA[<p>Here is some basic PHP code,<br /></p><div class="codebox"><pre><code>&lt;?php
    if ($firstVariable == $secondVariable)
    {
        echo &quot;same&quot;;
    }
    else
    {
        echo &quot;different&quot;;
    }
?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Einherjar)]]></author>
			<pubDate>Sun, 04 Oct 2009 22:11:56 +0000</pubDate>
			<guid>http://phpforums.org/post19.html#p19</guid>
		</item>
		<item>
			<title><![CDATA[Re: if and else]]></title>
			<link>http://phpforums.org/post7.html#p7</link>
			<description><![CDATA[<p>you would do something like this:</p><div class="codebox"><pre><code>&lt;?php
$word = &quot;google&quot;;
$word_1 = &quot;google&quot;;
$word2 = &quot;yahoo&quot;;


if($word, $word_1) == $word_1) { // First $word is the word that it is being checked if it matches $word_1 
   echo &quot;&lt;font color=&#039;green&#039;&gt;Same: Word = google &lt;/font&gt;&quot;;
} else {

  echo &quot;&lt;font color=&#039;red&#039;&gt;Different&lt;/font&gt;&quot;;
}


if($word2, $word) == $word) { 
   echo &quot;&lt;font color=&#039;green&#039;&gt;Same: Word = $word &lt;/font&gt;&quot;;
} else {

  echo &quot;&lt;font color=&#039;red&#039;&gt;Different: word = $word you typed $word2&lt;/font&gt;&quot;;
}


?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (jaydesigns)]]></author>
			<pubDate>Sun, 04 Oct 2009 02:44:53 +0000</pubDate>
			<guid>http://phpforums.org/post7.html#p7</guid>
		</item>
		<item>
			<title><![CDATA[if and else]]></title>
			<link>http://phpforums.org/post6.html#p6</link>
			<description><![CDATA[<p>hi</p><p>how would i make an if statement so if first variable is the same as second variable it displays the word &quot;same&quot; and if they are different it displays the word &quot;different&quot;</p><p>thanks</p>]]></description>
			<author><![CDATA[null@example.com (manif3sto)]]></author>
			<pubDate>Sun, 04 Oct 2009 00:01:41 +0000</pubDate>
			<guid>http://phpforums.org/post6.html#p6</guid>
		</item>
	</channel>
</rss>

