<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: The Truth About PHP Variables</title>
	<atom:link href="http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/</link>
	<description>Musings of a PHP developer</description>
	<lastBuildDate>Sat, 23 Jan 2010 01:51:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: styx</title>
		<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/#comment-434</link>
		<dc:creator>styx</dc:creator>
		<pubDate>Sun, 03 Jan 2010 21:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://porteightyeight.wordpress.com/?p=71#comment-434</guid>
		<description>The results from the last example are very interesting. I didn&#039;t know about such a memory increase when using address. Thanks for the post.</description>
		<content:encoded><![CDATA[<p>The results from the last example are very interesting. I didn&#8217;t know about such a memory increase when using address. Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/#comment-351</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 02 Oct 2009 09:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://porteightyeight.wordpress.com/?p=71#comment-351</guid>
		<description>Wow, thanks so much. I&#039;ve been doing lots of that &quot;ahem&quot; saving memory. Doh! Very enlightenting and excellently written. Thank you.</description>
		<content:encoded><![CDATA[<p>Wow, thanks so much. I&#8217;ve been doing lots of that &#8220;ahem&#8221; saving memory. Doh! Very enlightenting and excellently written. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/#comment-93</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 18 Jun 2009 10:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://porteightyeight.wordpress.com/?p=71#comment-93</guid>
		<description>The function should be:
MyLangString($name){ return “Hello $name, welcome string in English, etc.”; }</description>
		<content:encoded><![CDATA[<p>The function should be:<br />
MyLangString($name){ return “Hello $name, welcome string in English, etc.”; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/#comment-89</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 18 Jun 2009 08:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://porteightyeight.wordpress.com/?p=71#comment-89</guid>
		<description>Thank you for your article. I was debating on how to load language data from a flat file, and had been trying to decide how to store the variables. Would I just use constants, normal variables, an array, a class? Well, I ended up using - functions. 

I ran your memory test on loading up say 10 variables full of text, along with loading up 10 functions that simply return the text, and I was shocked to see the difference in memory usage. I just write it like function MyLangString(){ return &quot;My welcome string in English, etc.&quot;; } Then just call the function when I need to either display it or pass it to a variable for later display. 

It&#039;s also handy for passing variables that are in the body of my text - such as a first name, or a website name. function MyLangString(){ return &quot;Hello $name, welcome string in English, etc.&quot;; }
echo MyLangString(&quot;Marco&quot;);</description>
		<content:encoded><![CDATA[<p>Thank you for your article. I was debating on how to load language data from a flat file, and had been trying to decide how to store the variables. Would I just use constants, normal variables, an array, a class? Well, I ended up using &#8211; functions. </p>
<p>I ran your memory test on loading up say 10 variables full of text, along with loading up 10 functions that simply return the text, and I was shocked to see the difference in memory usage. I just write it like function MyLangString(){ return &#8220;My welcome string in English, etc.&#8221;; } Then just call the function when I need to either display it or pass it to a variable for later display. </p>
<p>It&#8217;s also handy for passing variables that are in the body of my text &#8211; such as a first name, or a website name. function MyLangString(){ return &#8220;Hello $name, welcome string in English, etc.&#8221;; }<br />
echo MyLangString(&#8220;Marco&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adamcharnock</title>
		<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/#comment-17</link>
		<dc:creator>adamcharnock</dc:creator>
		<pubDate>Tue, 09 Jun 2009 08:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://porteightyeight.wordpress.com/?p=71#comment-17</guid>
		<description>Hi Brad. Thanks, I&#039;m pleased you liked it :) I try to keep the language reasonably neutral where I can, as well as avoiding topics like cricket, cucumber sandwiches, and the queen :p

I am trying to cook up some more blog posts at the moment, so let me know if there is anything you want to hear about!</description>
		<content:encoded><![CDATA[<p>Hi Brad. Thanks, I&#8217;m pleased you liked it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I try to keep the language reasonably neutral where I can, as well as avoiding topics like cricket, cucumber sandwiches, and the queen :p</p>
<p>I am trying to cook up some more blog posts at the moment, so let me know if there is anything you want to hear about!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://porteightyeight.com/2008/03/18/the-truth-about-php-variables/#comment-14</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Tue, 09 Jun 2009 02:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://porteightyeight.wordpress.com/?p=71#comment-14</guid>
		<description>Wow, I suppose the tutorial is nice.  Not what I had been searching for anyway.  But, I was surprised to see that you are based in England because there weren&#039;t any tell tale vocabulary choices.  For what it is worth, which may not be very much...</description>
		<content:encoded><![CDATA[<p>Wow, I suppose the tutorial is nice.  Not what I had been searching for anyway.  But, I was surprised to see that you are based in England because there weren&#8217;t any tell tale vocabulary choices.  For what it is worth, which may not be very much&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
