Which scheme according to you is a better one in case of matching?
Is it eregi or stripos or any other method?
Which scheme according to you is a better one in case of matching?
Is it eregi or stripos or any other method?
That depends if you want to do exact match or regexp match.
Moreover, eregi is deprecated, is not binary safe and does not work well with UTF-8.
For regexp matching you should use preg_match with i
flag instead.