<?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: Easy way to build GET query strings in php</title>
	<atom:link href="http://www.codediesel.com/php/building-get-query-strings-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codediesel.com/php/building-get-query-strings-php/</link>
	<description>/* PHP &#38; MySQL Journal */</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:39:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: SneakyWho_am_i</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1217</link>
		<dc:creator>SneakyWho_am_i</dc:creator>
		<pubDate>Thu, 21 May 2009 09:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1217</guid>
		<description>I have a friend (with &quot;hacker&quot; in his name, no less) who I&#039;ve told ten times this year about these functions, and still I catch him at it again and again and again.

He actually LIKES doing it the hard way. Why?

Worse, he makes up really novel schemes like using &quot;$&quot; to break up his variables, and writing custom parsers in pure php to parse his custom data notation.
It doubles the size of some of his scripts.</description>
		<content:encoded><![CDATA[<p>I have a friend (with &#8220;hacker&#8221; in his name, no less) who I&#8217;ve told ten times this year about these functions, and still I catch him at it again and again and again.</p>
<p>He actually LIKES doing it the hard way. Why?</p>
<p>Worse, he makes up really novel schemes like using &#8220;$&#8221; to break up his variables, and writing custom parsers in pure php to parse his custom data notation.<br />
It doubles the size of some of his scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newhope</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1095</link>
		<dc:creator>newhope</dc:creator>
		<pubDate>Fri, 27 Feb 2009 07:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1095</guid>
		<description>lol, the most interest in this article is the func &quot;parse_str&quot;
it&#039;s the first time I see it.
shame on me :)</description>
		<content:encoded><![CDATA[<p>lol, the most interest in this article is the func &#8220;parse_str&#8221;<br />
it&#8217;s the first time I see it.<br />
shame on me <img src='http://www.codediesel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pages tagged "easy"</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1013</link>
		<dc:creator>Pages tagged "easy"</dc:creator>
		<pubDate>Thu, 20 Nov 2008 13:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1013</guid>
		<description>[...] bookmarks tagged easy Easy way to build GET query strings in php : CodeD...&#160;saved by 4 others  &#160;&#160;&#160;&#160;MaruMariMaru bookmarked on 11/20/08 &#124; [...]</description>
		<content:encoded><![CDATA[<p>[...] bookmarks tagged easy Easy way to build GET query strings in php : CodeD&#8230;&nbsp;saved by 4 others  &nbsp;&nbsp;&nbsp;&nbsp;MaruMariMaru bookmarked on 11/20/08 | [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Internet Marketing Email &#187; Blog Archive &#187; Easy way to build GET query strings in php : CodeDiesel</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1011</link>
		<dc:creator>Internet Marketing Email &#187; Blog Archive &#187; Easy way to build GET query strings in php : CodeDiesel</dc:creator>
		<pubDate>Thu, 20 Nov 2008 01:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1011</guid>
		<description>[...] Another fellow blogger put an intriguing blog post on Easy way to build GET query strings in php : CodeDieselHere&#8217;s a quick excerptI’ve been doing PHP professionally for years and years and yet I’ve never seen this function before, not even mentioned anywhere or by anyone. What do we learn from this? That we all should re-read the PHP manual function list from time &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Another fellow blogger put an intriguing blog post on Easy way to build GET query strings in php : CodeDieselHere&#8217;s a quick excerptI’ve been doing PHP professionally for years and years and yet I’ve never seen this function before, not even mentioned anywhere or by anyone. What do we learn from this? That we all should re-read the PHP manual function list from time &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1006</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Sun, 16 Nov 2008 06:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1006</guid>
		<description>Thanks for the great examples !!</description>
		<content:encoded><![CDATA[<p>Thanks for the great examples !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sameer</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1005</link>
		<dc:creator>sameer</dc:creator>
		<pubDate>Fri, 14 Nov 2008 15:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1005</guid>
		<description>I&#039;ll use the example url from my post below:


$url_to_parse = &quot;http://www.example.com?city=new+york&amp;id=3456&amp;paid%5Bcurrency%5D=euro&amp;paid%5Bamount%5D=345&amp;paid%5Breceipt%5D=fgf44545&quot;;

$parsed_url = parse_url($url_to_parse);
$url_query = $parsed_url[&#039;query&#039;];

parse_str($url_query, $out);
print_r($out);

This will print:
Array
(
    [city] =&gt; new york
    [id] =&gt; 3456
    [paid] =&gt; Array
        (
            [currency] =&gt; euro
            [amount] =&gt; 345
            [receipt] =&gt; fgf44545
        )

)

I&#039;ve also updated the post above to include this comment.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll use the example url from my post below:</p>
<p>$url_to_parse = &#8220;http://www.example.com?city=new+york&#038;id=3456&#038;paid%5Bcurrency%5D=euro&#038;paid%5Bamount%5D=345&#038;paid%5Breceipt%5D=fgf44545&#8243;;</p>
<p>$parsed_url = parse_url($url_to_parse);<br />
$url_query = $parsed_url['query'];</p>
<p>parse_str($url_query, $out);<br />
print_r($out);</p>
<p>This will print:<br />
Array<br />
(<br />
    [city] => new york<br />
    [id] => 3456<br />
    [paid] => Array<br />
        (<br />
            [currency] => euro<br />
            [amount] => 345<br />
            [receipt] => fgf44545<br />
        )</p>
<p>)</p>
<p>I&#8217;ve also updated the post above to include this comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1004</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Fri, 14 Nov 2008 13:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1004</guid>
		<description>Sorry, but it seems that the square brackets in the urls are filtered. I&#039;ll use / instead of square bracket [
?opt=tpo&amp;/foo\bar=1&amp;foo/baz\=2</description>
		<content:encoded><![CDATA[<p>Sorry, but it seems that the square brackets in the urls are filtered. I&#8217;ll use / instead of square bracket [<br />
?opt=tpo&amp;/foo\bar=1&amp;foo/baz\=2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1003</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Fri, 14 Nov 2008 13:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1003</guid>
		<description>In the previous post I meant: 
http://xxxx.yyy?opt=tpo&amp;foo[bar]=1&amp;foo[baz]=2</description>
		<content:encoded><![CDATA[<p>In the previous post I meant:<br />
<a href="http://xxxx.yyy?opt=tpo&#038;foobar=1&#038;foobaz=2" rel="nofollow">http://xxxx.yyy?opt=tpo&#038;foobar=1&#038;foobaz=2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1002</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Fri, 14 Nov 2008 13:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1002</guid>
		<description>Is there an opposite function to http_build_query ? 
A function that converts 
http://xxxx.yyy?opt=tpo&amp;foo[bar]=1&amp;foo[baz]=2
to
array(&#039;opt&#039; =&gt; &#039;tpo&#039;, foo =&gt; array(&#039;bar&#039; =&gt; 1, &#039;baz&#039; =&gt; 2);</description>
		<content:encoded><![CDATA[<p>Is there an opposite function to http_build_query ?<br />
A function that converts<br />
<a href="http://xxxx.yyy?opt=tpo&#038;foobar=1&#038;foobaz=2" rel="nofollow">http://xxxx.yyy?opt=tpo&#038;foobar=1&#038;foobaz=2</a><br />
to<br />
array(&#8216;opt&#8217; =&gt; &#8216;tpo&#8217;, foo =&gt; array(&#8216;bar&#8217; =&gt; 1, &#8216;baz&#8217; =&gt; 2);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://www.codediesel.com/php/building-get-query-strings-php/comment-page-1/#comment-1000</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Fri, 14 Nov 2008 11:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=127#comment-1000</guid>
		<description>@Jani : It&#039;s only available since PHP5, it&#039;s kinda new.
Thanks for the tip.</description>
		<content:encoded><![CDATA[<p>@Jani : It&#8217;s only available since PHP5, it&#8217;s kinda new.<br />
Thanks for the tip.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

