$str = preg_replace('#[^a-z1-9\-]#', '', str_replace(array(' ', 'å', 'ä', 'ö'), array('-','a','a','o'), strtolower($str)));