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