I have a PHP page in which I am using following command:-
$abc = preg_replace('/&#(\d+);/me', "chr(\\1)", $abc);
Now I want to replace the above command with the "preg_replace_callback" function as preg_replace is deprecated in PHP 5.4 .
How can I achieve it?