您的位置:首页 > Web前端

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

2012-10-02 11:44 1171 查看
碰到php升级到5.3.0后,function ereg_replace() 被废除后的解决办法

$sefu = explode(",", ereg_replace( ' +', '', SEO_URLS_ONLY_IN ));

改为:

$sefu = explode(",", preg_replace( '/ +/', '', SEO_URLS_ONLY_IN ));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐