How would i search a string for one or more specific words or phrases? I have a list of 9 words or phrases that i would like to search a string for, and if they exist trigger a variable.
Any ideas?
int substr_count (string haystrack, string needle)
substr_count() returns the number of times the needle substring occurs in the haystack string.