Strange Query: Full function WORD COUNTER?

konichiwa

Lifer
Oct 9, 1999
15,077
2
0
So I'm looking for a word counting software/website/whatever with more options that MS Word's. I need it to be able to remove small words like a, an, i, the, etc from the count.

That is the most essential feature but if anyone knows any full-feature word counting software or websites (preferably free) PLEASE let me know!

thanks
 

fs5

Lifer
Jun 10, 2000
11,774
1
0
<?php
$str = "string you want to count";
$ignoreList = array('a', 'an', 'i', 'the', 'etc');
echo word_count(str_replace($ignoreList, '', $str));
?>