phpdeprecatedereg

how to solve the ereg function deprecated error


I am working with SEO PHP scripts and I am just following Google SEO scripts. When I used the search terms I got an error like the following:

Deprecated: Function eregi() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 3876

Deprecated: Function ereg() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 3896

Deprecated: Function ereg() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 1451

How should I remove that error function? Is there any need to use a library?


Solution

  • eregi() function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

    you can use preg_match().