please help : I am stuck in Array problem

I have following code running.It is a test script which is showing one question on page.I want to show all questions on that page.below is the code that geneates the questions one by one

        if(!empty($_SESSION['PQ_QUIZ'])){
		$asd= $_SESSION['PQ_QUIZ']['DATA'];

// print_r($asd);
foreach($asd as $key=>$value){
getQuizModule($value,$key+1);

            }
        }

Here is the code of the function which is called
function getQuizModule($value,$qstn){
switch($value[‘types’]){
case ‘mcq’:
getMCQ($value,$qstn);

    break;
}

return true;

}
Below is the output when i printed array $asd
Array ( [0] => Array ( [qid] => 1009360623 [category] => test1 [questions] =>

My name is rajpreet
[answers] => true [types] => mcq [options] => true|false|can’t say|may be ) [1] => Array ( [qid] => 1277777766 [category] => test1 [questions] =>

My nick name is raj
[answers] => true [types] => mcq [options] => false|true|can’t say|may be ) )

Please help me .How could i display Both questions on single page.For now this code generate one question and there is a button for next question.

Sponsor our Newsletter | Privacy Policy | Terms of Service