I have an array which is multidimensional as given below:
Array
(
[fk_member_id] => 1
[f_name] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[m_name] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[l_name] => Array
(
[0] => Aagiwal
[1] => Aagiwal
[2] => Aagiwal
[3] => Aagiwal
[4] => Aagiwal
[5] => Aagiwal
)
[dob] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[gender] => Array
(
[0] => Male
[1] => Male
[2] => Male
[3] => Male
[4] => Male
[5] => Male
)
[relation] => Array
(
[0] => Father
[1] => Father
[2] => Father
[3] => Father
[4] => Father
[5] => Father
)
[marital_status] => Array
(
[0] => Single
[1] => Single
[2] => Single
[3] => Single
[4] => Single
[5] => Single
)
[eduction] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
)
I am looking a way to rearrange this array as :
Array
(
[0] => Array
(
[f_name] =>
[m_name] =>
[l_name] => 'Agaliwal'
[dob] =>
[gender] => 'Male'
[relation] => 'Father'
[marital_status] =>
[education] =>
[fk_member_id] => 1
)
[1] => Array
(
[f_name] =>
[m_name] =>
[l_name] => 'Agaliwal'
[dob] =>
[gender] => 'Male'
[relation] => 'Father'
[marital_status] =>
[education] =>
[fk_member_id] => 1
)
[2] => Array
(
[f_name] =>
[m_name] =>
[l_name] => 'Agaliwal'
[dob] =>
[gender] => 'Male'
[relation] => 'Father'
[marital_status] =>
[education] =>
[fk_member_id] => 1
)
[3] => Array
(
[f_name] =>
[m_name] =>
[l_name] => 'Agaliwal'
[dob] =>
[gender] => 'Male'
[relation] => 'Father'
[marital_status] =>
[education] =>
[fk_member_id] => 1
)
[4] => Array
(
[f_name] =>
[m_name] =>
[l_name] => 'Agaliwal'
[dob] =>
[gender] => 'Male'
[relation] => 'Father'
[marital_status] =>
[education] =>
[fk_member_id] => 1
)
[5] => Array
(
[f_name] =>
[m_name] =>
[l_name] => 'Agaliwal'
[dob] =>
[gender] => 'Male'
[relation] => 'Father'
[marital_status] =>
[education] =>
[fk_member_id] => 1
)
)