Voglio testare una stringa per vedere che contiene certe parole.preg_match per più parole
cioè:
$string = "The rain in spain is certain as the dry on the plain is over and it is not clear";
preg_match('`\brain\b`',$string);
Ma questo metodo corrisponde una sola parola. Come posso verificare più parole?
preg_match_all() –
si rimanda alla domanda modificato – Autolycus