I have seen a great usage about avoiding SQL injection in PHP. Method uses an array function to modify all $_GET or $_POST arrays.