Quiz Results

Question $Count: $Answer"; if ($Answer == $CorrectAnswers[$Count-1]) { echo " (Correct!)

"; ++$TotalCorrect; } else echo " (Incorrect)

"; ++$Count; } echo "

You scored $TotalCorrect out of 5 answers correctly!

"; } else echo "

You didn't answer all the questions!

"; } scoreQuestions(); ?>