把字符串 "Hello world!" 中的字符 "world" 替换为 "Shanghai"

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_15936309/article/details/87980250
<?php
echo str_replace("world","Shanghai","Hello world!");
?>

猜你喜欢

转载自blog.csdn.net/qq_15936309/article/details/87980250