PHP introductory tutorial: stripos example tutorial_PHP tutorial

WBOY
Release: 2016-07-20 11:00:23
Original
1044 people have browsed it

php introductory tutorial:stripos Example tutorial

Definition and usage
The stripos() function returns the position where the first occurrence of the string begins.

If the string is not found, this function returns FALSE.

stripos(string,find,start)
Parameter Description

string: Must first,

find: the string that must be found

start: Optional. Specifies where to begin the search


Okay, let’s take a look at the .stripos example.


echo stripos("Hello world!","WO");
?>


The output result is.
6


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445520.htmlTechArticlephp introductory tutorial: stripos example tutorial definition and usage The stripos () function returns the position where the string appears for the first time starting position. If the string is not found, this function returns...
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