Home  >  Article  >  php教程  >  php中的strpos使用示例

php中的strpos使用示例

WBOY
WBOYOriginal
2016-06-13 09:41:411531browse

定义和用法
该strpos()函数返回的立场,首次出现了一系列内部其他字串。

如果字符串是没有发现,此功能返回FALSE 。

语法

复制代码 代码如下:


strpos(string,find,start)

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

复制代码 代码如下:


echo strpos("Hello world!","wo");
?>

结出结果:6

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn