strpos works great for finding the first occurence of a string.
strpos($haystack, ".");
gets the first instance of "." in $haystack.
But let's say I want to get the first instance of period, comma, or space? I can't do
strpos($haystack, [\ ,.]);
and get an answer, and I've not been able to find any reasonable way to do this other than to do strpos three times and then compare results. (messy!)
Anybody have any ideas on how to solve this one?
-Ben