//Returns 10 question from questions table

```
$result = mysqli_query($con,"SELECT question FROM questions ORDER BY rand() LIMIT 10' ");
while($row = mysqli_fetch_row($result))
{
$que[]=$row[0];
}  

```

Now I need to store this whole set of `$que[]` in a session variable. (i.e 10 questions)

Something like this

```
$_SESSION['question'] = $que[]; 

$my_array[] = $_SESSION['question'];

```

so that `$my_array[0]` returns first question, `$my_array[1]` returns second questions and like that. 

(Thanx for the help in advance)