Home > Backend Development > PHP Tutorial > php strripos function tutorial_PHP tutorial

php strripos function tutorial_PHP tutorial

WBOY
Release: 2016-07-20 11:00:27
Original
1128 people have browsed it

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