title: Parse URL in php
body: <p>In php, if I wanted to parse a URL, such as www.site.com/index.php?foo=bar, I can do with the _POST variable. I can retrieve <code>bar</code> by <code>_POST['foo']</code>. </p>
  
  <p>But what if my URL is something like <code>www.site.com/index.php?foo&amp;bar</code>. i.e., I don't have the arguments as key-value pairs as in the first case. How to parse this in php?</p>