This commit is contained in:
2019-06-30 20:46:55 +02:00
parent 1a4be41e47
commit 49516948d5
2 changed files with 1 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ function getAllWords() {
//Aufgabe 2 //Aufgabe 2
function getRandomWord() { function getRandomWord() {
$arr = getAllWords(); $arr = getAllWords();
return array_rand($arr)[0]; return $arr[array_rand($arr)];
} }
// startet die Session und initialisiert das tasks-Array // startet die Session und initialisiert das tasks-Array