stripos - 语法

stripos(string,find,start)

它用于查找一个字符串在另一个字符串中第一个出现的位置

Sr.No 参数 & 描述
1

str

用于搜索的字符串

2

find

它用于指定要查找的字符串

3

start

它指定从何处开始搜索

stripos - 返回值

如果成功,它将返回字符串在另一个字符串中第一次出现的位置,否则将显示一条消息,表示未找到字符串

stripos - 示例

<?php
   echo stripos("tutorials point","point");
?>

这将产生以下输出-

10

参考链接

https://www.learnfk.com/php/php-function-stripos.html