stripos(string,find,start)
它用于查找一个字符串在另一个字符串中第一个出现的位置
Sr.No | 参数 & 描述 |
---|---|
1 |
str 链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-stripos.html 来源:LearnFk无涯教程网 用于搜索的字符串 |
2 |
find 它用于指定要查找的字符串 |
3 |
start 它指定从何处开始搜索 |
如果成功,它将返回字符串在另一个字符串中第一次出现的位置,否则将显示一条消息,表示未找到字符串
<?php echo stripos("tutorials point","point"); ?>
这将产生以下输出-
10
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)