in reply to How can I find the first position of a substring case-insensitively?

You could just use 'lc' to test for 'a' in the lowercased version of the string (which would effectively be the same thing).
index(lc($mystr),'a')

Originally posted as a Categorized Answer.

  • Comment on Re: How can I find the first position of a substring case-insensitively?
  • Download Code