what is a good method to sanitize the whole $_POST array in php?
If the type of each of your input variables is a string and you want to sanitize them all at once, you can use: This will sanitize your $_GET and $_POST arrays. Seen here: PHP -Sanitize values of a array