Using array_push to combine two multidimensional arrays (fruit1, fruit2) but I get results below:
[86733] => Array ( [Fruit] => Apple [NAME] => Mac ) [86734] => Array ( [Fruit] => Orange [NAME] => Navel ) [86735] => Array ( [0] => Array ( [Fruit] => Pear [NAME] => Green ) [1] => Array ( [Fruit] => Pineapple [NAME] => )
Really looking for this kind of format when combining them. Just want to add one array to the other and not merging the arrays.
[86733] => Array ( [Fruit] => Apple [NAME] => Mac ) [86734] => Array ( [Fruit] => Orange [NAME] => Navel ) [86735] => Array ( [Fruit] => Pear [NAME] => Green ) [86736] => Array ( [Fruit] => Pineapple [NAME] => )
Thanks!
array_push($array, $array2);
? – bwoebi Sep 26 '14 at 23:31