This commit is contained in:
2019-06-30 18:17:44 +02:00
parent 72cc5deff8
commit 8e82ec0ee5
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ function maskWord($word) {
}
function getAllWords() {
return array(include("words-array.php"));
return include("words-array.php");
}

View File

@@ -14,9 +14,9 @@ echo <<<END
</tr>
END;
foreach ((array)$arr as $a) {
$transformed = transformWord($a);
$mask = implode(" ", maskWord($a));
for ($i = 0; $i < count($arr); $i++) {
$transformed = transformWord($arr[$i]);
$mask = implode(" ", maskWord($arr[$i]));
echo <<<END
<tr>
<td>$a</td>