terrific
terrific

Reputation: 1667

Which one is a more reliable matching scheme, EREGI or STRIPOS?

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

Is it eregi or stripos or any other method?

Upvotes: 0

Views: 268

Answers (1)

vartec
vartec

Reputation: 134721

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.

Upvotes: 5

Related Questions