Morning I'm working on a project and I have a issue, it's about to know how to remove duplicate entry from an array object .
Here is structure of my array :
"IDGROUP": [
{
"id": 72
},
{
"id": 72
}
]
Here is code snippet:
if($compteGroupes && $compteGroupes->getId()!=0){
$Tableaux_pack[$current_id_fictif]["ingroup"]]=
$Mes_comptes_reels_dependants [$taille_reel];
$Tableaux_pack[$current_id_fictif]["IDGROUP"]=
array(
'id'=>$compteGroupes->getId()
);
}
thank's for your help