Klibr / array_key_exists

array_key_exists (key, array/object)

Retourne TRUE si la clé existe dans le tableau passé en parametre sinon retourne FALSE.

Exemple d'utilisation en Javascript

o = {};
o.a = 0;
o.b = 1;
o.c = 2;
o.d = 3;
o.e = 4;
o.f = 5;
test = array_key_exists("d", o);

Exemple d'utilisation en VB6

Dim o As Object
Set o = CreateObject("Scripting.Dictionary")
o.Add "a", 0
o.Add "b", 1
o.Add "c", 2
o.Add "d", 3
o.Add "e", 4
o.Add "f", 5
test = array_key_exists("d", o)

Exemple d'utilisation en VBA

Dim o As Object
Set o = CreateObject("Scripting.Dictionary")
o.Add "a", 0
o.Add "b", 1
o.Add "c", 2
o.Add "d", 3
o.Add "e", 4
o.Add "f", 5
test = array_key_exists("d", o)
kevgd loader
Patientez...