<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Tutorials Code Snippets and Php Tips &#187; variables</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : Constants and Variables</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-constants-and-variables/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-constants-and-variables/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 12:12:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic PHP]]></category>
		<category><![CDATA[constants]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php constants]]></category>
		<category><![CDATA[php variables]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=57</guid>
		<description><![CDATA[Hi, I didn&#8217;t writed here for 3 days because of the holidays stuff, etc. and now I got a little bit of free time to write about php variables and constants. Variables and constants in php are doing almost the &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-constants-and-variables/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I didn&#8217;t writed here for 3 days because of the holidays stuff, etc. and now I got a little bit of free time to write about php variables and constants. Variables and constants in php are doing almost the same thing, but the aspect who shows very well the difference between those two things in php coding are the way they get created.</p>
<p>Variables are beeing created and printed in this way :</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$newvariable <span class="phpOperator">=</span> <span class="phpString">"something"</span><span class="phpText">;</span>
<span class="phpFunction">print</span> $newvariable<span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>The constants are defined in the next way :</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunction">define</span><span class="phpOperator">(</span><span class="phpString">'Constantname'</span>, <span class="phpString">'constantvalue'</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="htmlText">
print Constantname</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>The is a set of rules for both such as must begin with a letter, doesn&#8217;t allow to containt dashes such as &#8220;-&#8221;, but there is allowed &#8220;_&#8221;. For more informations please check the official php website.</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-constants-and-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

