Inspekt: Sanitize PHP Superglobals

Working with PHP’s $_GET, $_POST, and $_COOKIE can be daunting especially when dealing with various magic quotes configuration, etc. More importantly, these superglobals are also subject to SQL injections and other hack attacks. Good thing there’s Inspekt — a PHP class that puts these variables in a “cage” and sanitizes them. Accessing the specific variables that you need is done through specified methods, returning safer values, containing only what you need.