I have these variables:
$summary="The problem with field2 is field13. The fix will be field7"
$_POST['field2']='thiscomputer';
$_POST['field7']='thishotfix';
$_POST['field13']='thisapplication';
I'm trying to craft a preg_replace() that will find /field[0-9]/ within the string and replace it with the value from the $_POST array. But I keep coming up short. Maybe preg_replace() is the wrong function to use in this instance. I'm trying to replace an old long list of 50+ str_replace's
Thanks for any help that can point me in the right direction