Php appartenance a un tableau

Résolu/Fermé
nEm3sis Messages postés 710 Date d'inscription lundi 20 août 2007 Statut Membre Dernière intervention 9 avril 2012 - 1 déc. 2007 à 16:27
nEm3sis Messages postés 710 Date d'inscription lundi 20 août 2007 Statut Membre Dernière intervention 9 avril 2012 - 7 déc. 2007 à 22:23
Bonjour,
j'aimerai faire un truc du genre

$tableau = array('.' , '..')
if ($nom appartien pas a $tableau) echo '$nom ';

mais je ne connai pas le code pour 'appartien a'
pourriez vous m'aider ?
merci
A voir également:

2 réponses

La fonction est:

in_array(.....)

Vas voir sur Google comment l'utiliser.
2
nEm3sis Messages postés 710 Date d'inscription lundi 20 août 2007 Statut Membre Dernière intervention 9 avril 2012 113
7 déc. 2007 à 22:23
merci
0