I have the main array called $quizzes which contains the collection of $Quiz.
Each $Quiz has the following fields: $Quiz['correct'] gives me the number of correct questions.
I can get the number of correct questions for 12th quiz using $quizzes[12]['correct']
However, since these quizzes are not displayed in order, I decided to define a new array:
$listoftests = array('$quizzes[30]','$quizzes[51]');
In my head, $listoftests[0]['correct'] should be equal to $quizzes[30]['correct'] but it's giving me
Warning: Illegal string offset 'correct' in /demo.php on line 14 $
when I try to echo $listoftests[0]['correct'];
correct