I have a text and I would like to find certain words, but in the way I am doing it it is with substr_count()
I can only find the word as I wrote it.
Example
$text = "Eu sou um Menino e gosto de brincar com outros MENINOS";
$count= substr_count($text , 'menino');
echo $count;
The result of this will give 0
because as the function is case sensitive
will not find me the other words, how to circumvent it?