Notice: preg_replace(): The /e modifier is deprecated

Discussion in 'PHP' started by horseygirl, Feb 4, 2015.

  1. #1
    ive changed to PHP 5.3 which I don't think is an issue but get this error

    Notice: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in

    here is the code:

    $upper_string = preg_replace("!(^|[^\p{L}'])([\p{Ll}])!eS" . Smarty::$_UTF8_MODIFIER, "stripslashes('\\1').mb_convert_case(stripslashes('\\2'),MB_CASE_UPPER, '" . addslashes(Smarty::$_CHARSET) . "')", $string);
     
    horseygirl, Feb 4, 2015 IP
  2. jslirola

    jslirola Active Member

    Messages:
    39
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    58