Loading…

What is str_replace()?

It is used to replaces some characters with some other characters in a string.

Suppose, we want to Replace the characters "Umesh" in the string "Umesh Singh" with "Sonu"

echo str_replace("Umesh","Sonu","Umesh Singh");

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question