Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列を使用してPHPでこれを行う方法を見つけることができないようです。
$id_qty1 = array(1 => 20, 2 => 30, 3 => 40); $id_qty2 = array(1 => 30, 2 => 20, 3 => 50);
ある配列を他の配列と比較してチェックしたいと思います。
同じキーとより大きな値が 1 つのことを行う場合
同じキーと小さい値が別のことをする場合