i am having issue with deprecated function of preg_replace(). it says write preg_replace_callback(); instead.
can you guide me how i will write the following code in newer version of PHP ?
$query_string = preg_replace('/([^a-z0-9])(s|sessionhash)=[a-z0-9]{32}(&|&)?/', '\\1', $match[2]);
$foruminfo['link'] = $match[1] . '?' . $vbulletin->session->vars['sessionurl_js'] . substr($query_string, 1);
thanks.