I have an array like :
$a =['main'=> [ 'a' => ['1st'], 'b' => ['2nd'], 'c' => ['3th'] ];
and I want do:
if(in_array('1st', $a['main'][*any*])){ ... }
I want need *any* value too
Aucun commentaire:
Enregistrer un commentaire