Question

Which scheme according to you is a better one in case of matching?

Is it eregi or stripos or any other method?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top