Easy Tutorial
❮ Func Filesystem Chgrp Php Mysql Intro ❯

PHP strripos() Function

PHP String Reference Manual

Example

Find the last occurrence of "php" in the string:


Definition and Usage

The strripos() function finds the position of the last occurrence of a string within another string (case-insensitive).

Note: The strripos() function is case-insensitive.

Related functions:


Syntax

Parameter Description
string Required. Specifies the string to search.
find Required. Specifies the character to find.
start Optional. Specifies where to start the search.

Technical Details

Return Value: Returns the position of the last occurrence of a string within another string, or FALSE if the string is not found. Note: String positions start at 0, not 1.
PHP Version: 5+
--- ---
Changelog: As of PHP 5.0, the find parameter can be a string of more than one character. <br> <br>In PHP 5.0, the start parameter was added.
--- ---
❮ Func Filesystem Chgrp Php Mysql Intro ❯