28 Aout 2009
Test l'existence de doublons dans un tableau associatif
Compatibilité : PHP 5, PHP 7, PHP 8
Fonction qui permet de savoir si le tableau passé en argument contient des doublons. La fonction renvoie true si il y a au moins 1 doublon, sinon false.
Invité
16 Fév 2017 à 11:43Il existe array_count_values qui fait la même chose.
Invité
26 Mars 2011 à 10:36cool ta fonction, merci