mayamanako
Technical User
hi guys, i'm a newbie in php and would like to ask for some guidance.
i have a .txt file with the list of words something like this:
apple
banana
orange
grapes
.
.
.
and have also another body of text(probably more than a 1000 words) which i'd like to search and count the number of instances of the words like apple, banana, etc that it contains and list them, as an example, in this manner:
apple 5
banana 3
orange 1
.
.
.
is there a way to do it in php without using sql database, just pure php?
thanks for any help.
i have a .txt file with the list of words something like this:
apple
banana
orange
grapes
.
.
.
and have also another body of text(probably more than a 1000 words) which i'd like to search and count the number of instances of the words like apple, banana, etc that it contains and list them, as an example, in this manner:
apple 5
banana 3
orange 1
.
.
.
is there a way to do it in php without using sql database, just pure php?
thanks for any help.