Hi,
Let's say I have the following string/text:
$text= "new day new problem.";
How can I count the word "new", how many time it appears? (In this case, it appears 2 times).
It could also be two words, like "new day". In this case it appears once.
Please remember, that $text consists of several paragraphs.
Thanks!
Andre
Let's say I have the following string/text:
$text= "new day new problem.";
How can I count the word "new", how many time it appears? (In this case, it appears 2 times).
It could also be two words, like "new day". In this case it appears once.
Please remember, that $text consists of several paragraphs.
Thanks!
Andre