源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  PHP问题 —— Deprecated: Function ereg_replace() is de

PHP问题 —— Deprecated: Function ereg_replace() is de

分类: 文章 • 2022-06-29 19:07:52

1.1  Deprecated: Function ereg_replace() is deprecated

1.1.1  现象

运行应用出现如下错误提示:

Deprecated: Function ereg_replace() is deprecated in xxx.php on line ###.

1.1.2  原因

php在5.2版本以前ereg_replace都使用正常,在5.3以后,就要用preg_replace来代替。

1.1.3  解决

改成preg_replace()函数即可。


相关推荐

  • 解决php报sqlsrv_connect not a function的问题
  • 解决php:Function mysql_connect is deprecated
  • php断开mysql连接报Call to undefined function mysql_close()的错误 php关闭mysql的连接问题
  • controller.php Call to a member function fetch() on a non-object问题的解决
  • 如何解决php5.3提示Function ereg() is deprecated Error问题
  • 如何解决PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL问题
  • PHP出现Notice: unserialize() [function.unserialize]: Error at offset问题的解决方案
  • PHP问题 —— undefined function mb_convert_encoding
  • PHP问题 —— Deprecated: Function ereg_replace() is de
  • PHP出现Notice: unserialize() [function.unserialize]: Error at offset问题的解决方案
  • PHP问题 —— It is not safe to rely on the system's
  • 怎么在Ubuntu和其他Linux发行版上使用7Zip
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号