protected function get_correct_answers($question) {
        $arrayofchoices = $this->get_array_of_choices($question);
        $arrayofplaceholdeers = $this->get_array_of_placeholders($question);

        $correctplayers = array();
        foreach ($arrayofplaceholdeers as $ph) {
            foreach ($arrayofchoices as $key => $choice) {
                if ($key + 1 == $ph) {
                    $correctplayers[] = $choice;
                }
            }
        }
        return $correctplayers;
    }
protected function get_correct_answers($question) {
        $arrayofchoices = $this->get_array_of_choices($question);
        $arrayofplaceholdeers = $this->get_array_of_placeholders($question);

        $correctplayers = array();
        foreach ($arrayofplaceholdeers as $ph) {
            foreach ($arrayofchoices as $key => $choice) {
                if ($key + 1 == $ph) {
                    $correctplayers[] = $choice;
                }
            }
        }
        return $correctplayers;
    }
protected function get_correct_answers ( $ question ) { $ arrayofchoices = $ this -> get_array_of_choices ( $ question ) ; $ arrayofplaceholdeers = $ this -> get_array_of_placeholders ( $ question ) ; $ correctplayers = array ( ) ; foreach ( $ arrayofplaceholdeers as $ ph ) { foreach ( $ arrayofchoices as $ key => $ choice ) { if ( $ key + 1 == $ ph ) { $ correctplayers [ ] = $ choice ; } } } return $ correctplayers ; }
This method gets the correct answers in a 2 dimentional array.

@param object $question
@return array of groups
This method gets the correct answers in a 2 dimentional array .