This commit is contained in:
csimonis 2024-10-12 13:45:04 +02:00
commit 9ffda1656d
4 changed files with 69 additions and 0 deletions

11
demo/oop/loesung.php Normal file
View file

@ -0,0 +1,11 @@
<?php
$fragen = require 'holeFragen.php';
foreach ($fragen as $frage) {
if ($frage->istRichtig($_POST[$frage->getFrageNr()])) {
echo $frage->getFrageNr() . ' ist Richtig';
} else {
echo $frage->getFrageNr() . ' ist Falsch';
}
echo "<hr>";
}