/ Published in: PHP
Wandelt eine Zeichenkette, die Sonderzeichen enthält, in eine Zeichenkette ohne Sonderzeichen.
Converts a string, the special characters contains in a string without special characters.
Converts a string, the special characters contains in a string without special characters.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function CleaningAString($string) { //$string = strtolower($string); // Fix german special chars // Replace other special chars '#' => 'sharp', '$' => 'dollar', '%' => 'prozent', //'percent', '&' => 'und', //'and', '@' => 'at', '.' => 'punkt', //'dot', '€' => 'euro', '+' => 'plus', '=' => 'gleich', //'equals', '§' => 'paragraph', ); } "ÀÃÂÃÄÅà áâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÃÃŽÃìÃîïÙÚÛÜùúûüÿÑñ", "AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn" ); // Remove all remaining other unknown characters return $string; }