<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PHP Forums - if and else]]></title>
	<link rel="self" href="http://www.phpforums.org/feed-atom-topic5.xml"/>
	<updated>2009-10-07T15:15:19Z</updated>
	<generator>PunBB</generator>
	<id>http://phpforums.org/topic5-if-and-else.html</id>
		<entry>
			<title type="html"><![CDATA[Re: if and else]]></title>
			<link rel="alternate" href="http://phpforums.org/post22.html#p22"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jaydesigns]]></name>
				<uri>http://phpforums.org/user8.html</uri>
			</author>
			<updated>2009-10-07T15:15:19Z</updated>
			<id>http://phpforums.org/post22.html#p22</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: if and else]]></title>
			<link rel="alternate" href="http://phpforums.org/post20.html#p20"/>
			<content type="html"><![CDATA[<p>thanks&nbsp; <img src="http://phpforums.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[manif3sto]]></name>
				<uri>http://phpforums.org/user7.html</uri>
			</author>
			<updated>2009-10-04T23:27:48Z</updated>
			<id>http://phpforums.org/post20.html#p20</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: if and else]]></title>
			<link rel="alternate" href="http://phpforums.org/post19.html#p19"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Einherjar]]></name>
				<uri>http://phpforums.org/user2.html</uri>
			</author>
			<updated>2009-10-04T22:11:56Z</updated>
			<id>http://phpforums.org/post19.html#p19</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: if and else]]></title>
			<link rel="alternate" href="http://phpforums.org/post7.html#p7"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jaydesigns]]></name>
				<uri>http://phpforums.org/user8.html</uri>
			</author>
			<updated>2009-10-04T02:44:53Z</updated>
			<id>http://phpforums.org/post7.html#p7</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[if and else]]></title>
			<link rel="alternate" href="http://phpforums.org/post6.html#p6"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[manif3sto]]></name>
				<uri>http://phpforums.org/user7.html</uri>
			</author>
			<updated>2009-10-04T00:01:41Z</updated>
			<id>http://phpforums.org/post6.html#p6</id>
		</entry>
</feed>

