Menu
×
×
Correct!
Exercise:Replace the word "World" with the word "Dolly".
$oldtxt = "Hello World!";
$newtxt = str_replace("World", "Dolly", $oldtxt)
$oldtxt = "Hello World!";
$newtxt = str_replace('World', 'Dolly', $oldtxt)
$oldtxt = "Hello World!";
$newtxt = str_replace("World", 'Dolly', $oldtxt)
$oldtxt = "Hello World!";
$newtxt = str_replace('World', "Dolly", $oldtxt)
Not CorrectClick here to try again. Correct!Next ❯$oldtxt = "Hello World!"; $newtxt =( , , ) |