Showing posts with label PHP strripos. Show all posts
Showing posts with label PHP strripos. Show all posts

Monday, 29 September 2014

strripos in PHP

 PHP strripos() function is utilized to discover the position of the final occurrence of a case-insensitive string in a string. Returns FALSE if match not found.

Syntax:

strripos(string,find,start)
string : Required. Specifies the string to examined.

find : Required. Specifies the string to find

start : Optional.Specifies starting position of the first string.

Note : This function is case-insensitive.

Example:

<?php
echo strripos("Good Morning","oR");
?>
Output will be:
6