Simple PHP string replace?
$abc = ' Hello "Guys" , Goodmorning';
$new_string = str_replace("\"", '$^', $abc);
echo $new_string;
output:
Hello $^Guys$^ , Goodmorning
str_replace('"','$^',$abc);
Should work for you.
Have a look at str_replace
$abc = ' Hello "Guys" , Goodmorning';
$abc = str_replace('"', '$^', $abc);