<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 04:39:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer's Blog: Easy way to build GET query strings in php]]></title>
      <guid>http://www.phpdeveloper.org/news/11402</guid>
      <link>http://www.phpdeveloper.org/news/11402</link>
      <description><![CDATA[<p>
<i>Sameer</i> has come up with an <a href="http://www.codediesel.com/php/building-get-query-strings-php/">easy way</a> to build out query strings to use in your GET requests:
</p>
<blockquote>
Passing variables with a url is such a frequent thing programmers do that most of you may think this post is unwarranted. We call this method of passing variables as GET, the other being POST. It is one of those things which can be easily done in php. [...] The best way to pass GET variables is to use the http_build_query() function available from php version 5; which takes an array of variables and builds a nice URL encoded string which you can append to a url. And example is shown below.
</blockquote>
<p>
He includes two code examples - one showing "the old way" of building it out by hand and the other using the <a href="http://php.net/http_build_query">http_build_query</a> function. You pass in an array and what to connect them with and it builds out the string, no matter how many arguments there are.
</p>]]></description>
      <pubDate>Thu, 13 Nov 2008 12:47:01 -0600</pubDate>
    </item>
  </channel>
</rss>
