Possible Duplicate:
PHP: Merge 2 Multidimensional Arrays
I have these arrays and I want to merge them into one array.
$arrayAAA[0]['name'] = "stackoverflow";
$arrayBBB[0]['color'] = "white";
$arrayCCC[0]['media'] = "web";
I want to merge these like this.
$newArray[0]['name'] //"stackoverflow"
$newArray[0]['color'] //"white"
$newArray[0]['media'] //"web"
If anyone knows how to do this, please give me a help.
I thought I could merge them by using array_merge()
, but this function doesn't work in my case.
Thanks so much in advance!