if I have a file (result.txt) that contains :
egg
apple
egg
orange
banana
"chinese word"
"italian word"
"chinese word"
and I would like to count the frequecy of each term, do you know how? because I have a site provide search, every keyword search is stored in a table and now I would like to see which word is most frequent requested.
do I need to use trim() or other functions also to remove the white space and double quote?
thank you.