In PHP programming can we use str_replace();
in echo '';
If it is possible then please show me an example.
echo str_replace('dog', 'cat', 'thats an ugly dog');
output is "thats an ugly cat" from "thats an ugly dog";
Example: http://codepad.org/b63nu4Ie