comprenez cette explication ? Franchement je cherche mais comprend toujours pas .Peu ête une bete en programmation passe par là pourra expliquer en language de débutant à quoi sert cette fonction .
preg_match — Expression rationnelle standard
Description
int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] )
preg_match() analyse subject pour trouver l'expression qui correspond à pattern.
Si matches est fourni, il sera rempli par les résultats de la recherche. $matches[0] contiendra le texte qui satisfait le masque complet, $matches[1] contiendra le texte qui satisfait la première parenthèse capturante, etc.
voici le lien
http://fr.php.net/manual/fr/function.preg-match.php
preg_match — Expression rationnelle standard
Description
int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] )
preg_match() analyse subject pour trouver l'expression qui correspond à pattern.
Si matches est fourni, il sera rempli par les résultats de la recherche. $matches[0] contiendra le texte qui satisfait le masque complet, $matches[1] contiendra le texte qui satisfait la première parenthèse capturante, etc.
voici le lien
http://fr.php.net/manual/fr/function.preg-match.php