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() { function getAllWords() {
return array(include("words-array.php")); return include("words-array.php");
} }

View File

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