diff --git a/cgi-bin/uebung08/hangman_lib.php b/cgi-bin/uebung08/hangman_lib.php index 3667ea2..d9dbb8a 100644 --- a/cgi-bin/uebung08/hangman_lib.php +++ b/cgi-bin/uebung08/hangman_lib.php @@ -42,6 +42,8 @@ function maskWord($word) { function getAllWords() { $str = file_get_contents("words-array.php"); $str = str_replace('"', '', $str); + $str = str_replace('[', '', $str); + $str = str_replace(']', '', $str); return explode(", ", $str); }