PHP strripos Function

What is strripos Function?

Explanation

In PHP this function is used to find position of last occurrence of a case-insensitive string in a string.

Syntax:


strripos(string,find,start)

In the above syntax "string" specifies the text to be searched in, "find" specifies the string to be searched for,"start" specifies the position where to begin search.

Example :


<?php
echo strripos("Hiox India!","I");
?>
Result :

8

In the above strripos function example the string "I" is searched for its last occurence which happens to be in the "8"th position.

PHP Topics


Ask Questions

Ask Question