I'm reading through an array, and i wanted to count the number of occurences that a certain word appears for instance if the user wants to count how much times "the" appears in the array. Umm i came about the strstr function from the string library, but im not sure if it could be used for that. Can it?
The aim is to count number of occurences of a word