I want to sanitize data against mysql injection. So I need to write a pattern to recognize and remove 4 main mysql SELECT, Replace, DELETE , UPDATE.
I want to use this general rule for array_map
$_POST = array_map('stz',$_POST);
However I stuck in to write that pattern to against happens like this " ' AND 1=1; SELECT * FROM test_table "