Bonjour,
J'ai un texte et je cherche certain mots à l'intérieur. Si je trouve ces mots, je fais une action sinon, j'en fais une autre.
Je pensais faire un tableau regroupant ces mots et faire une recherche pour chacuns.
comment procederiez-vous?
Bonjour,
J'ai un texte et je cherche certain mots à l'intérieur. Si je trouve ces mots, je fais une action sinon, j'en fais une autre.
Je pensais faire un tableau regroupant ces mots et faire une recherche pour chacuns.
comment procederiez-vous?
bah un tableau de tes mots (array) et pour chaques entrées une recherche via preg_match() je crois (trou de memoire la )![]()
![]()
est-ce que preg_match() doit obligatoirement utiliser les expression réguliere ? ou de simple mots suffit ?
normalement de simples mots suffit !
Partager