Opposite of array_intersect?

前端 未结 5 1097
盖世英雄少女心
盖世英雄少女心 2021-02-06 20:36

Is there a built-in function to get all members of array 1 which do not exist in array 2?
I know how to do it programatically, only wondering if there is a built-in function

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-06 21:09

    I found this docstore.mik.ua/orelly/webprog/pcook/ch04_24.htm quite useful.

    You might want a reverse diff, by reversing the order of the arrays in a standard diff.

提交回复
热议问题