i am using something like the following but the function replace_callback isnt executed at all
$body2 = preg_replace_callback("/\{(.*)\}/isUe","replace_callback",$body);
the string $body looks like this:
...<Cell><Data>{var}</Data></Cell>...
where is my fault
doesnt work:
function replace_callback() {
$test999= "asdasdasdasdasdasdsdd";
return($test999);
}
$body2 = preg_replace_callback("/\{(.*)\}/isU","replace_callback",$body);