将“World”一词替换为“Dolly”一词。
$oldtxt = "Hello World!";
$newtxt = @(11)(@(7), @(7), @(7))
$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)