I have a file named questions.php with an array as follows :
$question12 = array(\"Which is the tallest mountain\",\"Mt Everest\");
I am in
Just use $question12[0]. It will give you the desired output.
Using the $var you can do it like this:-
$question = ${'question'. $var}[index];
$question = ${'question'. $var}[index]