original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: This method gets the correct answers in a 2 dimentional array.
  
  @param object $question
  @return array of groups
docstring_tokens: This method gets the correct answers in a 2 dimentional array .