-
How to generate report like pivot table from php 3d array on question_id base
almost 8 years ago
-
almost 8 years ago
Hello imran,
As per my understanding you need to make changes in your mention array. Are you using database to manage the question and its related answers? Kindly check below array.
array(
[133422] => array( [0] => array([front_title] => 'my response' ), [1] => array([front_title] => 'my response' ), [2] => array([front_title] => 'my response' ) ),
[133423] => array( [0] => array([front_title] => 'my response2' ), [1] => array([front_title] => 'my response2' ), [2] => array([front_title] => 'my response2' ) ) )
In above code we created associated array in which we are using question id as key and includes different answer inside it.
Thank you
Deepak Verma
-
1 Answer(s)