I am getting
preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
in one of the files in my application.
Near the below lines
$str = preg_replace('/\&\#([0-9]+)\;/me', "code2utf('\\1',{$lo})",$str);
$str = preg_replace('/\&\#x([0-9a-fA-F]+)\;/me', "codeHex2utf('\\1',{$lo})",$str);
How to convert the above preg_replace
code to preg_replace_callback
?