[Tableaux] Utiliser la fonction "array_key_exists" sur un tableau de tableau
Bonjour,
Je créer un tableau de tableau comme ceci :
Code:
1 2 3 4 5 6 7
| $dataLocation = array();
$reponse_1 = mysql_query('SELECT ID, name FROM glpi_dropdown_locations');
while ($donnees_1 = mysql_fetch_array($reponse_1))
{
$dataLocation[] = array($donnees_1['ID'],$donnees_1['name']);
} |
J'aimerai utilisé la fonction "array_key_exists" pour savoir si un élément exsiste dasn ce tableau.
Le problème c'est que j'ai un tableau de tableau et la fonction ne fonctionnement sur ce type de tableau.
Comment faire ?
Merci d'avance
Arnaud