<!DOCTYPE html>
<html>
<body>
<p>在字符串 "Hello World!" 中搜索值 "world" 并将其替换为 "Bill":</p>
<?php
echo str_replace("world","Bill","Hello world!");
?>
</body>
</html>