Home > php教程 > php手册 > body text

php strpos 用法实例教程

WBOY
Release: 2016-06-13 11:16:52
Original
855 people have browsed it

 

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

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

语法

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

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

 

<!--?phpecho strpos("Hello world!","wo");?-->
Copy after login
结出结果:6
Copy after login

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!