php 求二維數組的差集|比較二維數組的不一樣 array_diff

array_diff只針對一維數組有效,對二維數組無效(求出爲空或array(0))。 手冊寫明是:Note: This function only checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using array_diff($array1[0], $arr
相關文章
相關標籤/搜索