+ 1
How to display a string after replacing the specific character in the string with a character of our own choice?
for ex pharaoh -> phorooh replaced all a with o
1 Resposta
+ 1
var str = "pharaoh";
str = str.replace(/a/g, "o");
echo str_replace("a","o","pharaoh");