km176351
11-17-2005, 03:16 PM
Hi, I have an array set up in the following format:
w["about"]= "12345 "
w["belong"]="6789"
w["category']="12345"
It bascically acts as a search engine used in the following way:
if(w["category"] // does the word category exist in the array
My question is how I could possibly incorporate a wildcard feature thus if a user tried to search for "cat", although it doesn't exist as a word in itself, it would pick up category (something like search for cat****)
Thanks for your time,
w["about"]= "12345 "
w["belong"]="6789"
w["category']="12345"
It bascically acts as a search engine used in the following way:
if(w["category"] // does the word category exist in the array
My question is how I could possibly incorporate a wildcard feature thus if a user tried to search for "cat", although it doesn't exist as a word in itself, it would pick up category (something like search for cat****)
Thanks for your time,