[Tableaux] pb avec array_unique()
Bonjour à tous!
j'ai un petit problème pour dédoublonner un tableau :
voiçi le tableau d'origine :
Code:
1 2 3 4 5 6 7
| Array
(
[0] => Array ( [marq_imp_id] => 035 [marq_imp_lib] => HEWLETT PACKARD )
[1] => Array ( [marq_imp_id] => 035 [marq_imp_lib] => HEWLETT PACKARD )
[2] => Array ( [marq_imp_id] => DIV [marq_imp_lib] => DIVERS )
[3] => Array ( [marq_imp_id] => DIV [marq_imp_lib] => DIVERS )
) |
et si je fait array_unique($mon_tableau) voilà ce qu'il me renvoi :
Code:
1 2 3 4
| Array
(
[0] => Array ( [marq_imp_id] => 035 [marq_imp_lib] => HEWLETT PACKARD )
) |
Mais où est donc passé ma ligne "DIVERS" ????
Merci pour votre aide :)