php - how to remove duplicate entry from array objet -
morning i'm working on project , have issue, it's know how remove duplicate entry array object .
here structure of array :
"idgroup": [ { "id": 72 }, { "id": 72 } ]
here 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 help
your object looks javascript object - mean?
are entries classes? arrays
do want filter nested/multidimensional arrays based on values?
do want filter different class objects? see here: https://stackoverflow.com/a/2426579/8548024
Comments
Post a Comment