版权声明:咔咔 来自https://blog.csdn.net/fangkang7 https://blog.csdn.net/fangkang7/article/details/83506074
author:咔咔
wechat:fangkangfk
strpos()
str_replace查找 "php" 在字符串中第一次出现的位置
strpos() 函数是区分大小写的
str_replace()
语法
str_replace(find,replace,string,count)
参数 | 描述 |
---|---|
find | 必需。规定要查找的值。 |
replace | 必需。规定替换 find 中的值的值。 |
string | 必需。规定被搜索的字符串。 |
count | 可选。一个变量,对替换数进行计数。 |