Home >Backend Development >PHP Tutorial >PHP introductory tutorial: stripos example tutorial_PHP tutorial

PHP introductory tutorial: stripos example tutorial_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:00:231051browse

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...
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