douman6245 2017-04-14 06:19
浏览 39

摇滚mongo配置出错

I am using rockmongo in php application, it throws error message like

"Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\xampp\htdocsockmongoock.php on line 457"

function rock_name_to_java($name) {
    $name = preg_replace("/_([a-zA-Z])/e", "strtoupper('\\1')", $name);
    return $name;
 }

Please help me !!!

  • 写回答

2条回答 默认 最新

  • douzen1880 2017-04-14 06:30
    关注
     function rock_name_to_java($name) {
       return preg_replace("/\/_([a-zA-Z])\/e/", "strtoupper(\\1)", $name);
     }
    

    How about this

    评论

报告相同问题?