I've spent countless days trying to figure this out... I have a list of names I want to check for on my page. How can I check for these in a string. The last thing I tried was str_word_count
$members = "anne, barb, max"
print_r(str_word_count($members, 1));
Obviously that just returns an array of the $members variable. I want to check for the variables in my file and return which names were found.
I know this is probably a super easy question but, as my username suggests, I am a SuperN00b.