Skip to content

Instantly share code, notes, and snippets.

@chris-at-github
Created June 25, 2013 07:43
Show Gist options
  • Select an option

  • Save chris-at-github/5856694 to your computer and use it in GitHub Desktop.

Select an option

Save chris-at-github/5856694 to your computer and use it in GitHub Desktop.
return preg_replace(
array("|Ä|", "|Ö|", "|Ü|", "|ä|", "|ö|", "|ü|", "|ß|", "|[^-:/.a-zA-Z0-9\.+]|"),
array("Ae", "Oe", "Ue", "ae", "oe", "ue", "ss", $replace),
str_replace($arr, "", $str)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment