The easiest thing to do would be to use lc on $mystr like so:
Edited by Russ: Combined posts by ambiguous, tektsu, kilinrax, ariels, and tenatious into onemy $index = index( lc( $mystr ), "a" );
In reply to Re: How can I find the first position of a substring case-insensitively?
by eg
in thread How can I find the first position of a substring case-insensitively?
by ChilliHead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |