str_replace() 和 strpos()

简介: str_replace() 和 strpos()

author:咔咔


wechat:fangkangfk



strpos()



str_replace查找 "php" 在字符串中第一次出现的位置


strpos() 函数是区分大小写的


image.png


str_replace()  


语法


str_replace(find,replace,string,count)

屏幕快照 2022-05-12 上午12.18.03.png

目录
打赏
0
0
0
0
14
分享
相关文章
你所不知道的replace
差不多的replace,差不多的方法,你也差不多的用……
str.repeat(2)将字符串重复两次,let str_trim = ‘1 1 1 1‘str_trim.trim() 将字符串的空白部分去掉,toLowerCase()小写,toUpperCas
str.repeat(2)将字符串重复两次,let str_trim = ‘1 1 1 1‘str_trim.trim() 将字符串的空白部分去掉,toLowerCase()小写,toUpperCas
substr与substring的区别
substr与substring的区别
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等