• PHP Video Tutorials

PHP - Function Strripos



Syntax

strripos(string,find,start)

Definition and Usage

It is used find the position of the last occurrence of a string inside the another string

Return Values

It returns the position of the last occurrence of a string inside the another string or else false if string is not found

Parameters

Sr.No Parameters & Description
1

string

It specifies the string to search

2

find

It specifies the string to find

3

start

It specifies where to begin the start

Example

Try out the following example

<?php
   echo strripos("tutorials point,POINT tutorials","point");
?>

This will produce following result −

16
php_function_reference.htm
Advertisements