Jump to content

Eregi or strpos ?


EchoFool

Recommended Posts

Well not Eregi as it is deprecated as a function since PHP 5.3.0 So preg or strpos would really be the question, and my answer to that is: strpos would be easier as there are no regex patterns to work out, BUT preg_ once you have a handle on the way patterns work is a really handy thing to have grasped, the only drawback is there is more load on the parser when you use preg_ functions.

 

Rw

Link to comment
https://forums.phpfreaks.com/topic/215396-eregi-or-strpos/#findComment-1120105
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.