Answer the question
In order to leave comments, you need to log in
Case insensitive preg_match and replacement of found?
I find unnecessary words, but I can’t change ....
I understand that the design "/$item/iu"
is not correct, but it $item
also doesn’t work
foreach($slova as $item)
{
if (preg_match("/$item/iu",$opis))
{
$opis = str_replace("/$item/iu", "", $opis);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question