array_unique for arrays inside array

前端 未结 3 1216
忘了有多久
忘了有多久 2021-01-17 09:13

I need a function like array_unique for arrays inside array.

The Case - should be equal, but output \"not equal\":



        
3条回答
  •  滥情空心
    2021-01-17 09:32

    You should modify your call for array_unique to have it include the SORT_REGULAR flag.

    $arr2 = array_unique($arr, SORT_REGULAR);
    

提交回复
热议问题