Home  >  Article  >  php教程  >  php strpos 用法实例教程

php strpos 用法实例教程

WBOY
WBOYOriginal
2016-06-13 11:16:52817browse

 

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

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

语法

strpos(string,find,start)

		Parameter
Description
string 必选,
find 必需的。指定的查找字符串
start 可选,从哪里开始找


提示和说明 注: strpos ( )函数是区分大小写的。 例如

 

结出结果: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