Try index. This assumes $[ is 0 as it ought to be.
You don't exactly say you want case insensitivity, but example 2 comment seems to imply you do, so I threw it in. Remove the lc() functions if you don't want it$str1 = $str2 if index( lc($str2), lc($str1)) != -1;
After Compline,
Zaxo
In reply to Re: Compare 2 string values
by Zaxo
in thread Compare 2 string values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |