str_replace() 函数 把字符串 "Hello world!" 中的字符 "world" 替换为 "Shanghai": <?php echo str_replace("world","Shanghai","Hello world!"); ?> 世界上最美的风景,是自己努力的模样