mardi 9 juin 2020

how to remove duplicate data at array?

can somebody help me ?

i have variable containing an array from another function :

//variable from apriori function
$mightAlsoLike = $this->apriori();
dd($mightAlsoLike);

and the variable return like this:

[
  [
    "7"
  ],
  [
    "32"
  ],
  [
  "7",
  "32"
  ]
]

my probelm is how can u to remove duplicate id at array variable ? im newb ,very grateful if anyone helps.

sorry for my broken english, thanks.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Aj2Hsz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire