substr_replace(string,replacement,start,length)
它用于用另一个字符串替换字符串的一部分
Sr.No | 参数 & Description |
---|---|
1 |
string 用于指定要检查的字符串 |
2 |
replacement 它用于指定要插入的字符串 链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-substr-replace.html 来源:LearnFk无涯教程网 |
3 |
start 它指定何时在字符串中开始插入 |
4 |
length 它指定字符串的长度 |
它返回替换的字符串,如果返回的字符串是数组,则返回数组
<?php echo substr_replace("Tutorilas point","Tutorials Point",0); ?>
这将产生以下输出-
Tutorials Point
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)