Question: PHP using string function str_replace() by using it four different times to set the variable $stringOutput using the variable $stringInput. The expected output is what's
PHP using string function str_replace() by using it four different times to set the variable $stringOutput using the variable $stringInput. The expected output is what's in the double quotes below. $stringInput Value = "12 Rocks!" Output: 1) "12 Rocks!" 2) "12 Rocks!" 3) "12 Really Rocks!" 4) "12 Rocks!!!"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
