Klibr / array_intersect

kevgd / Klibr / array_intersect

array_intersect (array_1, array_2)

Retourne un tableau contenant les valeurs communes présente dans les deux tableaux passés en parametre.

illustration function klibr array_intersect

Exemple d'utilisation en Javascript

a = [0,1,2,3,4];
b = [1,3,2,3,6];
c = array_intersect(a, b);

Exemple d'utilisation en VB6

a = Array(0, 1, 2, 3, 4)
b = Array(1, 3, 2, 3, 6)
c = array_intersect(a, b)

Exemple d'utilisation en VBA

a = Array(0, 1, 2, 3, 4)
b = Array(1, 3, 2, 3, 6)
c = array_intersect(a, b)
kevgd loader
Patientez...