jonvi 发表于 2018-12-16 14:52:03

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

1.1Deprecated: 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()函数即可。
  




页: [1]
查看完整版本: PHP问题 —— Deprecated: Function ereg_replace() is de