title: PHP parse POST data
body: <p>As you know PHP replaces dots and spaces from <code>$_POST</code> and <code>$_GET</code> keys with _.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;input name="foo bar" /&gt; 
  </code></pre>
  
  <p>becomes <code>$_POST['foo_bar']</code> after sent to server instead of <code>$_POST['foo bar']</code>. </p>
  
  <p>Could you point me to a script that can handle this correctly even with arrays with depth <code>(name="fo.o[bar][12][]")</code>? Replacing . before sending the form with a character(s) is not an option since post is coming from an external non editable source.</p>
  
  <p>Solution should handle raw post data.</p>