strpos - 语法
strpos(string,find,start)
它用于查找一个字符串在另一个字符串中第一次出现的位置。
| Sr.No | 参数 & Description |
|---|---|
| 1 |
string 它指定要搜索的字符串 |
| 2 |
find 它指定要查找的字符串 |
| 3 |
start 它指定从何处开始搜索 |
strpos - 返回值
它返回字符串在另一个字符串中第一次出现的位置,如果没有找到字符串,则返回False
strpos - 示例
<?php echo strpos("Tutorials point simply easy learning !","easy"); ?>
这将产生以下输出-
23