Loading…

How to replace a text in a string with another text in php?

We can use str_replace() method to replace a text in a string with another string.

Example

                                        

str_replace("interview","interviews","Best interview questions!");

Suggest An Answer

No suggestions avaliable!

Latest post from PHP Strings

Ask Question