How do you replace values in a string which match an entry in array with the same value but with a \ in front of it ?
$test = "Mike (D)";
$array('(',')','@','-');
As ( ) are in the array $test should equal "Mike \(D\)";
So basically replacing the item with item same item prefixed with \
1 Answer