public function get_variants() {
        $variants = array_keys($this->variantstats);
        if (count($variants) > 1 || reset($variants) != 1) {
            return $variants;
        } else {
            return array();
        }
    }
public function get_variants() {
        $variants = array_keys($this->variantstats);
        if (count($variants) > 1 || reset($variants) != 1) {
            return $variants;
        } else {
            return array();
        }
    }
public function get_variants ( ) { $ variants = array_keys ( $ this -> variantstats ) ; if ( count ( $ variants ) > 1 || reset ( $ variants ) != 1 ) { return $ variants ; } else { return array ( ) ; } }
Array of variants that have appeared in the attempt data for this question. Or an empty array if there is only one variant.

@return int[] the variant nos.
Array of variants that have appeared in the attempt data for this question . Or an empty array if there is only one variant .