I'm trying to filter an input value against a list of words, but I don't want that list of words to be easily seen by someone perusing my site. I therefore want to first want to define each letter as a number, and then have an array with my "numberwords". So, for example, I need to define that a=1, b=2, etc etc. Then I have a list of numbers, which are actually fruit; i.e. an array which looks like this:"1-16-16-12-5, 2-5-1-18, 15-18-1-14-7-5" which is actually the words "apple, pear orange". A user will then enter a word or sentence in an input, and I need to check whether the word or a word in the sentence equals any of the fruits mentioned above.
Any help greatly appreciated!