function similar to strpos() ?
hey, i was wondering if there was a function similar to strpos() in PHP to test if certain characters exist within a string? i say similar because i'm looking for something that will test a string for a set of characters, but the characters wont necessarily be next to each other.
or the way i thought about doing it, was to add all the possibilities to a multi-dimensional array and then strcmp()'ing each element with the test string in a loop..only problem is, i dont know how to access the members of the array, lol. but lets say theres 5 possibilities and out of those 5, i want to test if 4 of them are a combination of 1,2,3,4 2,3,4,5 or 3,4,5,6. the best way to accomplish this would be.... ?
:) thanks