J'ai ce tableau:Rechercher dans un tableau 2D ... php
$ Fruit = array()
$ Fruit [espèces $] [de propriété $] = valeur $
Array
(
[Apple] => Array
(
[Green] => 4
[Spots] => 3
[Red] => 3
[Spots] => 2
)
maintenant, je veux rechercher si une clé existe dans le second tableau ...
J'ai essayé ceci:
if (!array_key_exists($property, $Fruit->$species))
Mais cela ne fonctionne pas ...
Quelqu'un sait comment rechercher dans un tableau d'un tableau ...?
Cordialement, Thijs