add oop
This commit is contained in:
parent
642491a9c0
commit
9ffda1656d
4 changed files with 69 additions and 0 deletions
11
demo/oop/loesung.php
Normal file
11
demo/oop/loesung.php
Normal 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>";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue