options
This commit is contained in:
@@ -22,7 +22,7 @@ class WrenchResources extends BaseController
|
||||
$option_mix=[];
|
||||
for ($ii=1; $ii<=4; $ii++){
|
||||
if ($ii== $ansPos){
|
||||
$next_question["option_mix"][]= $c;
|
||||
$option_mix[]= $c;
|
||||
}else
|
||||
{
|
||||
$ansRand = rand(1000,9999);
|
||||
@@ -30,11 +30,11 @@ class WrenchResources extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//[ rand(1000,9999), $c , rand(1000,9999)]
|
||||
|
||||
$next_question = [
|
||||
"question" => "What is C ? <br> C = $a + $b .",
|
||||
"option" => [ rand(1000,9999), $c , rand(1000,9999)],
|
||||
"option" => $option_mix,
|
||||
"answer" => $c,
|
||||
'option_mix' => $option_mix,
|
||||
"last" => false,
|
||||
|
||||
Reference in New Issue
Block a user