-2
我有兩個陣列具有以下結構:比較兩個數組並創建具有不同值的新數組PHP?
$arr1 = array(array(name => "name1",
qty => '1'
),
array(name => "name2",
qty => '2'
)
);
$arr2 = array(array(name => "name1",
qty => '1'
),
array(name => "name2",
qty => '1'
)
);
Resultat:
$arr3 = array(array(name => "name2",
qty => '1'
)
);
$ ARR3從ARR2得到不同的值!
在此先感謝!