I have 2 arrays with each 10 values.
print_r of var $correct answers
gives me this output:
Array (
[0] => 3
[1] => 0
[2] => 2
[3] => 3
[4] => 2
[5] => 2
[6] => 3
[7] => 1
[8] => 3
[9] => 1
)
print_r of var $choosen_answers
gives me this output:
Array (
[0] => 2 // different value
[1] => 0
[2] => 1 // different value
[3] => 3
[4] => 2
[5] => 2
[6] => 3
[7] => 1
[8] => 3
[9] => 0 // different value
)
Each value in the array corresponds with the number of question, so
[0] has the value of question 1
[1] has the value of question 2
[2] has the value of question 3
and so on...
Want i want to achieve: compare these arrays with each other an give me an output like:
Number of wrong answers: 3
Wrong answers:
Question 1
Question 3
Question 10
How can i achieve that?