PHP Demo
PHP Code
Output
A demo of string replace in PHP:
< ?php $src_rep = ("That is A test sentence for str_replace. That is A test sentence for str_replace. That is A test sentence for str_replace."); echo str_replace("is","
was
",$src_rep); ?>
A demo of string replace in PHP:
That
was
A test sentence for str_replace. That
was
A test sentence for str_replace. That
was
A test sentence for str_replace.