Joining 2 two multi dimensional arrays

i have 2 two multi dimensional arrays
$amazon[$y]=array(‘Asin’=>$payload[‘ASIN’],

              'LUP'=>$LUsedPrice,

              'LNP'=>$LNewPrice,

              'LFBAU'=>$LFBAU,

              'LFBAN'=>$LFBAN,

              'listPrice'=>$ListPrice,

              'OfferArray'=>$offers,                    );

$amazon2[$z]=array(‘Asin’=>$asin,

'Iweight'=>$IWeight,

'IWeightUnits'=>$IWeightUnits,

'Sub'=>$Subject,

'Subject1'=>$Subject1,

'Subject2'=>$Subject2,

'Binding'=>$Binding,

'ASINtype'=>$ASINtype,

'PWeight'=>$PWeight,

'Punits'=>$Punits,

'Edition'=>$Edition,

'ibn10'=>$isbn10,

'ibn13'=>$isbn13,

'Author'=>$Author,

'Publisher'=>$Publisher,

'Edition'=>$Edition,

'title'=>$title,

'publication_date'=>$publication_date2,

'publication_date2'=>$publication_date,

'DetailURL'=>$DetailURL,

'imageLink'=>$imageLink,

'Srank'=>$ranked2,

i am trying to join them into 1 array by asin (at the mercy of amazon) so the final output
$amazon3=array(‘Asin’=>$asin,
‘LUP’=>$LUsedPrice,
‘LNP’=>$LNewPrice,

              'LFBAU'=>$LFBAU,

              'LFBAN'=>$LFBAN,

              'listPrice'=>$ListPrice,

              'OfferArray'=>$offers,   

‘Iweight’=>$IWeight,

'IWeightUnits'=>$IWeightUnits,

'Sub'=>$Subject,

'Subject1'=>$Subject1,

'Subject2'=>$Subject2,

'Binding'=>$Binding,

'ASINtype'=>$ASINtype,

'PWeight'=>$PWeight,

'Punits'=>$Punits,

'Edition'=>$Edition,

'ibn10'=>$isbn10,

'ibn13'=>$isbn13,

'Author'=>$Author,

'Publisher'=>$Publisher,

'Edition'=>$Edition,

'title'=>$title,

'publication_date'=>$publication_date2,

'publication_date2'=>$publication_date,

'DetailURL'=>$DetailURL,

'imageLink'=>$imageLink,

'Srank'=>$ranked2,);

the issue is the array $amazon always has 20 results but the second array $amazon2 can have 0-20 results–any help would be great

Sponsor our Newsletter | Privacy Policy | Terms of Service