I have a textarea on page with UTF8 encoding.
How to count all sentences with php?
Update: Sentence starts with a capital letter and ending by dot, question or exclamation mark.
I have a textarea on page with UTF8 encoding.
How to count all sentences with php?
Update: Sentence starts with a capital letter and ending by dot, question or exclamation mark.
If you treat sentence as a piece of words with dot at the end you can count dots in your text.
If you use new line, count
's.