Using preg_replace_callback

Replacing preg_replace(//e) with preg_replace_callback