主页
PHP
PHP str_replace() 函数
tryphp_func_string_str_replace
运行 ❯
×
更改方向
保存代码
更改主题
Search the string "Hello World!", find the value "world" and replace it with "Peter":
<?php echo str_replace("world","Peter","Hello world!"); ?>