I have a problem. This is what I have:
$file_contents = preg_replace("!{$ldq}\*.*?\*{$rdq}!se","",$file_contents);
And I get a error saying that I need to replace preg_replace with preg_replace callback. And when I try to make it to preg_replace_callback this is what I end up with:
$file_contents = preg_replace_callback(
"!{$ldq}\*.*?\*{$rdq}!se",
function($matches) {
return "";
},
$file_contents);
And then I end up with a new error saying
preg_replace_callback(): Modifier /e cannot be used with replacement callback
What have I done wrong?