Just wondering how I can convert the following preg_replace() to preg_replace_callback() - I am having difficulty converting to preg_replace_callback() as preg_replace() is been deprecated.
$tableData['query'] = preg_replace('/{%(\S+)%}/e', '$\\1', $tableData['query']);
Replace all $string with $string variable.
Thanks heaps in advance