解决Deprecated: preg_replace(): The /e modifier is deprecated的三个方法 我会带着你远行 2021-09-26 00:26 486阅读 0赞 因为php版本过高,preg\_replace已经被弃用.可以对php进行降低版本来解决. 也可以把preg\_replace替换为reg\_replace\_callback,具体方法网上搜索Deprecated: preg\_replace(): The /e modifier is deprecated 相关的提示解决 或直接隐藏Deprecated级别的错误提示.方法是修改服务器上,php目录中php.ini 把原来的 error\_reporting=(注意前面没有引号) 这行,整体替换为 <span style="color: rgb(55, 55, 55); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px;">error_reporting =E_ALL | E_STRICT</span> ![70][] [70]: /images/20210923/8791b5a13bf44ae5a9a453bd85b39926.png
还没有评论,来说两句吧...