0

I have an array build. In this structure, I want to compare the array and list the ones that are not in the 1st array. I use array_diff but I get an error because it is a multi array. How should I do this with Foreach?

  1. Array
{
    0: {
      0: "Mantar",
      1: "Zeytin",
      2: "Domates",
      3: "Soğan",
      4: "Turşu"
    },
    1: {
      0: "Mantar",
      1: "Zeytin",
      2: "Domates",
      3: "Soğan",
      4: "Turşu"
    }
},
  1. Array
{
    0: {
      0: "Mantar",
      1: "Zeytin",
      2: "Domates"
    },
    1: {
      0: "Mantar",
      1: "Zeytin",
      2: "Domates",
      3: "Soğan",
      4: "Turşu"
    }
},

0 Answers0