PHP FUNCTION TO CONVERT ACCENTED CHARACTERS TO THEIR NON-ACCENTED EQUIVALANT

Saw that someone was using a simple preg_replace() with Alpha Numeric only regex to deal with an Umlauted O in a string and thought I’d post a slightly better way of doing it. There’s always better ways, we’ve just got to share them, so here I go…