Home  >  Article  >  Backend Development  >  php strripos function tutorial_PHP tutorial

php strripos function tutorial_PHP tutorial

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

Definition and usage


The strripos () function identifies a character appearing in a string.

If the function exists, return success, otherwise return FALSE.

Grammar

strripos(string,find,start)


Parameter Description

string: required. Specify string search

find: required. Find the specified string

start: optional. Specify where to start the search

Okay, let’s take a look at the practical tutorial of strripos.


echo strripos("Hello world!","WO");


?>

The output result is 6

Note that this function is not case sensitive.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445518.htmlTechArticleDefinition and usage The strripos () function has one character appearing in a string. The function returns success if present, otherwise returns FALSE. Syntax strripos(string,find,start) Parameter Description...
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