How do I add another multidimensional array to an already existing array.
$args = array('a'=>1,'b'=>2,'c'=>3);
Then I want to add 'd'=>4 to the already set array. I tried:
$args[] = array('d'=>4);
But I end up getting
Array ( [a] => 1 [b] => 2 [c] => 3 [0] => Array ( [d] => 4 ) )
Instead of
Array ( [a] => 1 [b] => 2 [c] => 3 [0] => [d] => 4 )
What is the correct way to achieve this result?