Remove all special characters from a php string with preg_replace().
Read this post on altafphp.blogspot.com