php常用函数
2017-11-27 15:57
162 查看
字符串
str_replace() 函数
str_replace() 函数
实例 把字符串 "Hello world!" 中的字符 "world" 替换为 "Shanghai": ======================= <?php echo str_replace("world","Shanghai","Hello world!"); ?>