I have this code:
$abc = ' Hello "Guys" , Goodmorning';
I want to replace every occurrence of
" (double quotes) by
$^ so that string becomes
'Hello $^Guys$^ , Goodmorning'
I am new to PHP; in Java we can do this very easily by calling the string class
replaceAll function, but how do I do it in PHP? I can't find the easy way on Google without using regular expressions.
What is some syntax with or without the use of regular expressions?