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

碰到php升级到5.3.0后,function ereg_replace() 被废除后的解决办法

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

改为:

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

posted on 2012-10-02 11:44  haven24  阅读(227)  评论(0)    收藏  举报

导航