Total Members Voted: 8
0 Members and 1 Guest are viewing this topic.
words = explode the search string with space delimiter " " ; it returns array/list of wordsforeach (songs_indexed as song) { matchedWords = 0; foreach (words as word) { if (word exist in song) { // regex test or whatever matchedWords++; } } if (matchedWords === words.length) { push song or songs[i] in search results array }}