I have a comma delineated string from an html form:
"wind, sun, ocean, lake"
i can use explode to turn it into an array but what i want to do is take each word and assign it to it's own variable (The number of words in the string may change), to end up with this:
$word1 == 'wind'
$word2 == 'sun'
$word3 == 'ocean'
$word4 == 'lake'
The reason is that I want to be able to put each variable into a single mysql query that cross references all the words at once.
Thanks!