php中的strpos使用示例_php实例

WBOY
Release: 2016-05-17 08:48:45
Original
1054 people have browsed it

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

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

语法

复制代码 代码如下:

strpos(string,find,start)

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

复制代码 代码如下:

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

结出结果:6

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template