can someone please fix this error in function from gumslone gumchat v3 script
function is
function mb_unserialize($serial_str) {
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':"$2";'", $serial_str);
return unserialize($out);
}
and error is
PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
it is used for user database settings where smileys and color is inserted in serialized kinda way then unserialized using this function above to use in script for turning smileys on off and selecting username colors aswell as ignore list