Belirli kelimeler içerdiğini görmek için bir dizeyi test etmek istiyorum.Çoklu kelimeler için preg_match
yani:
$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);
Ama bu yöntem yalnızca bir kelime ile eşleşir. Birden çok kelimeyi nasıl kontrol ederim? gibi
preg_match_all() –
Düzenlenen soru – Autolycus