Adding Addslashes Inside $_POST / $_GET

Imagine you working on modular php codes, and you want to sanitize your $_POST or $_GET inputs for database query.

Most of the time you add individual addslashes to variables, and you missed to add addslashes in here and there.

Turns out we can injecting addslashes to each predefined array values by using array_walk, the shortest one by using lambda function (require PHP 5.3)
Read more of this post