No... don't blame PHP
$correctAnswers = [ "question-1-answers" => "B", "question-2-answers" => "A", "question-3-answers" => "C", "question-4-answers" => "D" ]; $receivedAnswers = $_POST; $totalCorrect = count(array_intersect_assoc($correctAnswers, $receivedAnswers));
1 month programmer
Обсуждают сегодня