<?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/"
		>
<channel>
	<title>Comments on: PHP Variable Names: Curly Brace Madness</title>
	<atom:link href="http://cowburn.info/2008/01/12/php-vars-curly-braces/feed/" rel="self" type="application/rss+xml" />
	<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/</link>
	<description>Online storage depot for Peter Cowburn</description>
	<lastBuildDate>Fri, 03 Sep 2010 16:35:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Suhail</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-59999</link>
		<dc:creator>Suhail</dc:creator>
		<pubDate>Wed, 07 Jul 2010 16:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-59999</guid>
		<description>Thanks

&lt;code&gt;${&#039;s&#039;.&#039;t&#039;.&#039;r&#039;} = &#039;Hello Peter&#039;;&lt;/code&gt;

Helped a lot.....
after hours of solution searching ...
&amp; solving problem</description>
		<content:encoded><![CDATA[<p>Thanks</p>
<p><code>${'s'.'t'.'r'} = 'Hello Peter';</code></p>
<p>Helped a lot&#8230;..<br />
after hours of solution searching &#8230;<br />
&#038; solving problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikola</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-56132</link>
		<dc:creator>Nikola</dc:creator>
		<pubDate>Sat, 22 Aug 2009 08:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-56132</guid>
		<description>@Peter - Try NetBeans, it is amazing.

I was trying to clean up some strings tonight and discovered that I can use curly braces within double quotes to concatenate a var with the text immediately following it.  It looks much much cleaner than using periods and double quotes.  For example, if working a dynamic CSS rule:

background-position: $x_offset&quot;.px.&quot; $y_offset&quot;.px.&quot;

vs.

background-position: {$x_offset}px {$y_offset}px.

...a lot more readable.</description>
		<content:encoded><![CDATA[<p>@Peter &#8211; Try NetBeans, it is amazing.</p>
<p>I was trying to clean up some strings tonight and discovered that I can use curly braces within double quotes to concatenate a var with the text immediately following it.  It looks much much cleaner than using periods and double quotes.  For example, if working a dynamic CSS rule:</p>
<p>background-position: $x_offset&#8221;.px.&#8221; $y_offset&#8221;.px.&#8221;</p>
<p>vs.</p>
<p>background-position: {$x_offset}px {$y_offset}px.</p>
<p>&#8230;a lot more readable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Accessibility and Dynamic Variable names &#171; Mr Chimp Learns to Write</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-56071</link>
		<dc:creator>Accessibility and Dynamic Variable names &#171; Mr Chimp Learns to Write</dc:creator>
		<pubDate>Wed, 19 Aug 2009 14:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-56071</guid>
		<description>[...] leaves anyone that looks at it completely bewildered. Who knows, maybe even something sensible. This guy seems to be getting quite excited about [...]</description>
		<content:encoded><![CDATA[<p>[...] leaves anyone that looks at it completely bewildered. Who knows, maybe even something sensible. This guy seems to be getting quite excited about [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atus</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-25759</link>
		<dc:creator>Atus</dc:creator>
		<pubDate>Wed, 03 Sep 2008 11:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-25759</guid>
		<description>Well,

I have a code, what worked in PHP 4.x but didn!t in PHP5.
The code uses the function you mentioned above.

with PHP5 the
print_r(${(&#039;_GET&#039;)});
line prints the global? $_GET array, while 
print_r(${(&#039;_G&#039;.&#039;ET&#039;)});
gives an &quot;Undefined variable: $_GET&quot; php error.

:(</description>
		<content:encoded><![CDATA[<p>Well,</p>
<p>I have a code, what worked in PHP 4.x but didn!t in PHP5.<br />
The code uses the function you mentioned above.</p>
<p>with PHP5 the<br />
print_r(${(&#8216;_GET&#8217;)});<br />
line prints the global? $_GET array, while<br />
print_r(${(&#8216;_G&#8217;.'ET&#8217;)});<br />
gives an &#8220;Undefined variable: $_GET&#8221; php error.</p>
<p> <img src='http://cowburn.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-18129</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 13 Jan 2008 17:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-18129</guid>
		<description>I have tried to use a whole slew of IDEs in the past and there&#039;s really nothing exceptionally wrong with them. I rather prefer almost just a &#039;window&#039; with the code in (pretty highlighted) and nothing much else.  

I remember trying Aptana, Zend, Eclipse, Komodo, PhpED, PHP Designer, PHP Edit--those are the ones I can name off the top of my head--but it was nearly always simply the &#039;bulk&#039; of such applications which put me off.   I&#039;m a Zen-like person and they all just made too much noise for my liking!</description>
		<content:encoded><![CDATA[<p>I have tried to use a whole slew of IDEs in the past and there&#8217;s really nothing exceptionally wrong with them. I rather prefer almost just a &#8216;window&#8217; with the code in (pretty highlighted) and nothing much else.  </p>
<p>I remember trying Aptana, Zend, Eclipse, Komodo, PhpED, PHP Designer, PHP Edit&#8211;those are the ones I can name off the top of my head&#8211;but it was nearly always simply the &#8216;bulk&#8217; of such applications which put me off.   I&#8217;m a Zen-like person and they all just made too much noise for my liking!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haris</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-18128</link>
		<dc:creator>Haris</dc:creator>
		<pubDate>Sun, 13 Jan 2008 17:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-18128</guid>
		<description>Almost all the IDE&#039;s are heavy. It depends on what your prefer. All IDE&#039;s can be customized very easily.

I use Eclipse PDT http://www.eclipse.org/pdt/index.php.</description>
		<content:encoded><![CDATA[<p>Almost all the IDE&#8217;s are heavy. It depends on what your prefer. All IDE&#8217;s can be customized very easily.</p>
<p>I use Eclipse PDT <a href="http://www.eclipse.org/pdt/index.php" rel="nofollow">http://www.eclipse.org/pdt/index.php</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-18127</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 13 Jan 2008 16:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-18127</guid>
		<description>Absolutely, if you use an IDE then it makes sense to use any available features within the application!  Personally, I&#039;m still a little behind the times using a &quot;text editor&quot; (&lt;a href=&quot;http://www.panic.com/coda/ rel=&quot;nofollow&quot;&gt;Coda&lt;/a&gt;) and don&#039;t have the luxury  of built-in debugging, profiling and other lovely features that a full-on IDE would have. 

If someone built a light-weight IDE (ie, it worked just like TextMate or Code) with the ability to (optionally!) make use of heavier-weight features, that&#039;d be lovely and, in that case, could the someone let me know about it! :)</description>
		<content:encoded><![CDATA[<p>Absolutely, if you use an IDE then it makes sense to use any available features within the application!  Personally, I&#8217;m still a little behind the times using a &#8220;text editor&#8221; (<a href="http://www.panic.com/coda/ rel="nofollow">Coda</a>) and don&#8217;t have the luxury  of built-in debugging, profiling and other lovely features that a full-on IDE would have. </p>
<p>If someone built a light-weight IDE (ie, it worked just like TextMate or Code) with the ability to (optionally!) make use of heavier-weight features, that&#8217;d be lovely and, in that case, could the someone let me know about it! <img src='http://cowburn.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haris</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-18126</link>
		<dc:creator>Haris</dc:creator>
		<pubDate>Sun, 13 Jan 2008 16:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-18126</guid>
		<description>I meant to say perspective.</description>
		<content:encoded><![CDATA[<p>I meant to say perspective.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haris</title>
		<link>http://cowburn.info/2008/01/12/php-vars-curly-braces/#comment-18125</link>
		<dc:creator>Haris</dc:creator>
		<pubDate>Sun, 13 Jan 2008 16:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://cowburn.info/php/php-vars-curly-braces/#comment-18125</guid>
		<description>&quot;Have a play around yourself, remembering that you can print_r() or var_dump() the superglobal $GLOBALS or even use get_defined_vars() to find out the variable names that have been created.&quot;

Or use your favourite PHP IDE and use the almighty debug prespective.</description>
		<content:encoded><![CDATA[<p>&#8220;Have a play around yourself, remembering that you can print_r() or var_dump() the superglobal $GLOBALS or even use get_defined_vars() to find out the variable names that have been created.&#8221;</p>
<p>Or use your favourite PHP IDE and use the almighty debug prespective.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
