<?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>gaskell.org &#187; php</title>
	<atom:link href="http://gaskell.org/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://gaskell.org</link>
	<description>picking up where teh rest leave off</description>
	<lastBuildDate>Sun, 15 Nov 2009 07:55:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Variable variables in PHP</title>
		<link>http://gaskell.org/variable-variables-in-php/</link>
		<comments>http://gaskell.org/variable-variables-in-php/#comments</comments>
		<pubDate>Sat, 01 Apr 2006 00:53:36 +0000</pubDate>
		<dc:creator>andy gaskell</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://gaskell.org/variable-variables-in-php/</guid>
		<description><![CDATA[While learning PHP I came across a feature that&#8217;s completely new to me &#8211; variable variables. With variable variables you can dynamically assign variable names and reference those dynamic names. I understand how they work, I&#8217;m just not sure how useful they&#8217;d be. I suppose an array of variable variables could pass as a poor [...]]]></description>
			<content:encoded><![CDATA[<p>While learning PHP I came across a feature that&#8217;s completely new to me &#8211; variable variables. With variable variables you can dynamically assign variable names and reference those dynamic names. I understand how they work, I&#8217;m just not sure how useful they&#8217;d be. I suppose an array of variable variables could pass as a poor man&#8217;s <a rel="nofollow" href="http://msdn2.microsoft.com/en-us/library/system.collections.hashtable(VS.80).aspx">Hashtable</a> or <a rel="nofollow" href="http://msdn2.microsoft.com/en-us/library/system.collections.specialized.namevaluecollection(VS.80).aspx">NameValueCollection</a>.</p>
<p>Here&#8217;s some code that demonstrates variable variables:</p>
<pre class="code">
<code>&lt;?php
     $recipe = "beans";
     $$recipe = "&amp; big ideas";

     echo("$recipe $beans");
     echo("&lt;br/&gt;");
     echo("$recipe ${$recipe}");
?&gt;</code>
</pre>
<p>Here&#8217;s the <a target="_blank" href="http://gaskell.org/beans.php">output</a>:</p>
<pre class="code">
<code>beans &amp; big ideas
beans &amp; big ideas</code>
</pre>
<p>Technorati Tags: <a href="http://technorati.com/tag/PHP" rel="tag">PHP</a>, <a href="http://technorati.com/tag/variable+variables" rel="tag"> variable variables</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gaskell.org/variable-variables-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.176 seconds -->
