PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Array ( ї0] => Array ( їitem] => їquestionId] => 1a їquestion] => What is the capital city of England їchoice] => London Cardiff Edinburgh Dublin ) ї1] => Array ( їitem] => їquestionId] => 2a їquestion] => Which of these countries do not belong to the Scandanavia? їchoice] => Sweden Poland Norway Denmark ) ї2] => Array ( їitem] => їquestionId] => 1b їquestion] => London is located in which Country? їchoice] => England Scotland Ireland Isle of Man ) )
Array ( ї ] => 1 ї1a ] => 1 їWhat is the capital city of England ] => 1 їLondon Cardiff Edinburgh Dublin ] => 1 ) Array ( ї ] => 1 ї2a ] => 1 їWhich of these countries do not belong to the Scandanavia? ] => 1 їSweden Poland Norway Denmark ] => 1 ) Array ( ї ] => 1 ї1b ] => 1 їLondon is located in which Country? ] => 1 їEngland Scotland Ireland Isle of Man ] => 1 )
I think the array has 3 levels. I tried to write another inner foreach loop. but i just got a blank page.
Array
(
ї0] => Array
(
їitem] =>
їquestionId] => 1a
їquestion] => What is the capital city of England?
їchoice] => London
Cardiff
Edinburgh
Dublin
)
ї1] => Array
(
їitem] =>
їquestionId] => 2a
їquestion] => Which of these countries do not belong to the Scandanavia?
їchoice] => Sweden
Poland
Norway
Denmark
)
ї2] => Array
(
їitem] =>
їquestionId] => 1b
їquestion] => London is located in which Country?
їchoice] => England
Scotland
Ireland
Isle of Man
)
)
when i use the following code to to assess the 2 level arrays,
Array
(
їitem] =>
їquestionId] => 1a
їquestion] => What is the capital city of England?
їchoice] => London
Cardiff
Edinburgh
Dublin
)
Array
(
їitem] =>
їquestionId] => 2a
їquestion] => Which of these countries do not belong to the Scandanavia?
їchoice] => Sweden
Poland
Norway
Denmark
)
Array
(
їitem] =>
їquestionId] => 1b
їquestion] => London is located in which Country?
їchoice] => England
Scotland
Ireland
Isle of Man
)