metaphone is a php function that returns a string of letters that approximates the pronunciation of the string fed to it. it is to be used when you dont know how to spell a word (better than the dictionary, right?)
$word="music";
$key=metaphone($word);
print "$key";
//returns MSK
the metaphones for "BILL FOX BAND", after the string has been split into each word separately, are BL, FKS, BNT. I want to search for any band names that have any of these metaphone equivalents. (all the band names have been split up and given a metaphone for each word in the name, and stored in a separate table. a band with 3 words in the name will have three metaphones and 3 of the same band id.)
But this metaphone thing is only an added feature of what Im trying to do. I basically want to search for each word in the input string separately, not the whole string.
"dc" gives me hits. "band" gives me hits.
But "dc band" gives me nothing. Now I hope you can see. Thanks for checking back.