I am new to PHP.
I have a form program that records 2-dimensional info. It records info like this:
(Question1) (answer1) (answer2) (Question2) (answer1) (answer2)
I would like to save it to produce an array that looks like this for display purposes. (I can get it to only print_r arrays seperately)
$a=array( 1 => array( 0=>Q1 1=>A1 2=>A2) 2=> array( 0=>Q2 1=>A1 2=>A2) );
Admin Edit: Added CODE tags to preserve formatting.