unemployment Posted June 4, 2011 Share Posted June 4, 2011 This while loop while (($row = mysql_fetch_assoc($result)) !== false) { $data[] = $row; } return $data; } returns Array ( [0] => Array ( [u_count] => [c_count] => 6 [b_count] => [pm_count] => ) [1] => Array ( [u_count] => [c_count] => [b_count] => 0 [pm_count] => ) [2] => Array ( [u_count] => [c_count] => [b_count] => [pm_count] => 0 ) ) and I want all of these arrays merged. How can I do this? Link to comment https://forums.phpfreaks.com/topic/238388-need-to-change-array-structure/ Share on other sites More sharing options...
MasterACE14 Posted June 4, 2011 Share Posted June 4, 2011 http://www.php.net/manual/en/function.array-merge.php Link to comment https://forums.phpfreaks.com/topic/238388-need-to-change-array-structure/#findComment-1225099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.