diff --git a/cgi-bin/uebung08/hangman_lib.php b/cgi-bin/uebung08/hangman_lib.php index e679a75..d5e75f3 100644 --- a/cgi-bin/uebung08/hangman_lib.php +++ b/cgi-bin/uebung08/hangman_lib.php @@ -21,12 +21,11 @@ function resetTasks() //Bringt ein Wort in das richtige Format function transformWord($word) { - $word = strtoupper($word); - $word = str_replace("Ä", "AE", $word); - $word = str_replace("Ö", "OE", $word); - $word = str_replace("Ü", "UE", $word); + $word = str_replace("ä", "AE", $word); + $word = str_replace("ö", "OE", $word); + $word = str_replace("ü", "UE", $word); $word = str_replace("ß", "SS", $word); - + $word = strtoupper($word); return $word; }