如何解决ereg函数过时的错误 [英] how to solve the ereg function deprecated error

查看:87
本文介绍了如何解决ereg函数过时的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SEO PHP脚本,而我只是在遵循Google SEO脚本.使用搜索字词时,出现如下错误:

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?

推荐答案

eregi()函数已被弃用.强烈建议不要使用此功能.

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

您可以使用preg_match().

you can use preg_match().

这篇关于如何解决ereg函数过时的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆