diff --git a/cgi-bin/uebung08/hangman_lib.php b/cgi-bin/uebung08/hangman_lib.php index d9dbb8a..e679a75 100644 --- a/cgi-bin/uebung08/hangman_lib.php +++ b/cgi-bin/uebung08/hangman_lib.php @@ -44,6 +44,7 @@ function getAllWords() { $str = str_replace('"', '', $str); $str = str_replace('[', '', $str); $str = str_replace(']', '', $str); + $str = str_replace(';', '', $str); return explode(", ", $str); } diff --git a/cgi-bin/uebung08/list-words.php b/cgi-bin/uebung08/list-words.php index 9d20570..38dbbb6 100644 --- a/cgi-bin/uebung08/list-words.php +++ b/cgi-bin/uebung08/list-words.php @@ -4,8 +4,6 @@ require_once(__DIR__ . "/hangman_lib.php"); $arr = getAllWords(); -echo "LUL"; -echo $arr; echo <<