I have a particular phrase declared in a variable. See:
$bacco = "Você tem que abrir seu coração pro SQL e pedir o que realmente quer.";
I can see if there is a certain word within the sentence using strpos , like this:
if (strpos($bacco, 'que') !== false) {
echo 'true';
}
How can I check how many times the word "what" is repeated in this sentence?