If I use say:
preg_replace('#[^a-z0-9]#i', '', $_POST['dangerousINPUT']);
Will this be enough to completely stop injection attacks? Furthermore, will it stop crazy characters that hackers use for these sort of attacks (non english alphabetical)
Thank you. I could not find an answer asking this specifically.