I combine 4 arrays
into a single array named 'questions
' . how to display the elements inside this array one by one?
the PHP code is given below
<?php
$questions = array_merge($gk,$english,$malayalam,$maths);
print_r($questions[1]);
?>
and the print shows as given below
stdClass Object
(
[question_id] => 18
[question] => chairman of isro
[category_id] => 2
[exam_id] => 0
[subcategory_id] => 0
[category_name] =>
[subcategory_name] =>
[created] => 0000-00-00 00:00:00.00000
[modified] => 0000-00-00 00:00:00.00000
[option_a] => hg
[option_b] => k sivan
[option_c] => hg
[option_d] => fd
[correct_answer] => k sivan
[explanation] =>
)
how to display these items