substr_replace(): Replaces text within a portion of a string

replace the entire instance (say, by changing the ever-so-clichéd "Hello World!" into the more
"l33t" phrase "H3110 W0r1d!" and hence proving your "l33t" status), you could simply invoke
the substr_replace() function as shown in the following example