Bonjour,
Je créer un tableau de tableau comme ceci :
J'aimerai utilisé la fonction "array_key_exists" pour savoir si un élément exsiste dasn ce tableau.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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']); }
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
Partager