' . $ijk . ''; } else if (($ijk % 3) == 0) { $arow=str_replace('', '' . $ijk . '', $arow); $templategame=str_replace('', $arow . '', $templategame); $arow=''; } else { $arow=str_replace('', '' . $ijk . '', $arow); } } $templategame=str_replace('', $arow . '', $templategame); //file_put_contents('xx.html', $templategame); if ($across != 3 && 1 == 1) { $irws=1; $sofartd=''; $two=2; $wasih="", explode(""; $origih=$wasih; $rowas=explode("", $wasih); for ($irws=1; $irws 3 && strpos(substr(str_replace("\n","",$rowas[$irws]),0,2),'', $rowas[(-1 + $irws)] . '', $wasih); } } $rowas=explode(" 3) { $wasih=str_replace('', $rowas[$irws])[0] . '>', '-' . '->', $rowas[$irws]), $wasih); } } //file_put_contents('xxxx.html', str_replace($origih, $wasih, $templategame)); $rowas=explode("", $wasih); for ($irws=0; $irws'; $wasih=str_replace($sofartd, $sofartd . '', $wasih); $sofartd=''; $two++; } else { $sofartd.=$rowas[$irws] . ''; } } //file_put_contents('x.html', str_replace($origih, $wasih, $templategame)); $templategame=str_replace($origih, $wasih, $templategame); } //file_put_contents('xxx.html', $templategame); $templategame=str_replace('', '', $templategame); $templategame=str_replace('>Game<', '>Numbers Guessing Game Game ... drag to matching correct answer to score<', $templategame); $templategame=str_replace('>', '>' . $scorebit . '', $templategame); $thepsource=explode('f0;">', explode("

", $templategame)[0])[-1 + sizeof(explode('f0;">', explode("

", $templategame)[0]))]; //$templategame=str_replace(', 2023<', ', 2023 ... thanks to https://en.wikipedia.org/wiki/Street_suffix<', $templategame); $templategame=str_replace('>Reset example<', ' style="display:none;">Reset example<', $templategame); //echo $crandlist . "\n" . $thepsource . "\n" . $correctans . "\n"; //exit; //echo $crandlist . "\n"; //echo "" . $randlist[$correctans] . "\n" . $wikidescriptions[$randlist[$correctans]] . "\n" . $wikidesignations[$randlist[$correctans]]; //exit; if ($randmode == 0) { // designation up top and descriptions in drop zone $templategame=str_replace('>' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $theans . '">' . $theans . '<', $templategame); $templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $theans. '">' . $thecluewording . '<', $templategame); for ($i=1; $i<=99; $i++) { if ((-1 + $i) != $correctans) { $templategame=str_replace('>' . $i . '' . $i . '' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' .$wikidesignations[$randlist[$correctans]] . '<', $templategame); $templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' . $wikidescriptions[$randlist[$correctans]] . '<', $templategame); for ($i=1; $i<=99; $i++) { if ((-1 + $i) != $correctans) { $templategame=str_replace('>' . $i . '' . mapittwo($wikidesignations[$randlist[-1 + $i]]) . '