i have an array of strings.
I have an array of keywords.
i loop through each string, and need to store them to mysql database if it contains any of the keywords.
currently i am using multiple stristr(), which is getting difficult.
is it possible to do something like stristr($string, array("ship","fukc","blah")); ?
I would advice you to use regular expresion for that
snipet:
see the documentation of preg_match_all for reference