我有3個數組,現在我想合併它們以形成一個新數組,並基於關鍵的brand_name值在升序中迭代它們,即我想打印HP陣列第一NOKIA第二和三星最後PHP合併3陣列並基於第二個鍵值升序迭代
第一陣列
$first=array(
id: "1",
model_no: "1520",
brand_name: "samsung",
description: "this is samsung",
price: "1200",
);
第二陣列
$second=array(
id: "1",
model_no: "1100",
brand_name: "Hp",
description: "this is hp",
price: "1500",
);
第三陣列
上個$third=array(
id: "1",
model_no: "1200",
brand_name: "NOKIA",
description: "this is nokia",
price: "1150",
);