Is there an alternative or work-around to strpos() that isn't case-sensitive? In the code I'm working on I'm trying to find the first occurance of a certain word, but I don't want it to find just the lower-case versions of that word.
I'd suggest using the pcre_match function to build a Perl regexp. That's probably the most powerful and flexible way to do it, but you can also use the PHP eregi() function to perform less powerful regular expression work.
I have the same problem as you. I've been searching a function which makes it but I haven't found it. But I had an idea, you can convert both strings to upper/lowercase and then make an strpos. I only have found this solution 😉