$arrMyProduct = array(
'p0001' => 'Nokia 3110C',
'p0002' => 'Nokia E75'
);
$arrYourProduct = array(
'p0001' => 'Nokia Invisible',
'p0003' => 'Nokia C5-00'
);
$arrOutProduct = $arrMyProduct + $arrYourProduct;
'p0001' => 'Nokia 3110C',
'p0002' => 'Nokia E75'
'p0001' => 'Nokia Invisible',
'p0003' => 'Nokia C5-00'
$arrOutProduct = $arrYourProduct + $arrMyProduct;
'p0001' => 'Nokia Invisible',
'p0003' => 'Nokia C5-00',
'p0001' => 'Nokia 3110C',
'p0002' => 'Nokia E75'
Title:
PHP - Merge associative array with plus operator
Description:
$arrMyProduct = array( 'p0001' => 'Nokia 3110C', 'p0002' => 'Nokia E75' ); $arrYourProduct = arr...
...
Rating:
4