First, let me explain what I will do with this piece of code. I have a database and a user interface to search the values within. Users are likely to type more than one keyword. So that I need to check if all the values in the array exist in my database.
For instance if they would type "green apple" and I had a string value of this kind "That greenish pineapple is gross", I am supposed the display this search result. On this account I figured out that somehow I need to find a way to check if the string values contain all values in the array, or not.
Thanks a million