提供PHP的字串取代範例
Replace the text "World" with "Dolly":
$x = "Hello World!";
echo str_replace("World", "Dolly", $x);
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: 提供PHP的字串取代範例 ### Response: Replace the text "World" with "Dolly":
$x = "Hello World!";
echo str_replace("World", "Dolly", $x); 