How to undo PHP Magic Quotes on _GET, _POST, _COOKIE and _REQUEST

This might be useful for older server configurations which run a PHP version below PHP 5.4.0.

It removes the escapes done by PHP Magic Quotes by running stripslashes over all the values.

More info about PHP Magic Quotes.