How to use strripos in PHP

In this article I will explain how strripos function can be used in PHP.
  • 1477
strripos() Function

This function search the position of  the last occurrence of a string inside another string.This function is case-intensive.

Syntax

strrpos(string,find,start)

Example

<html>
 <body>
 <?php
 echo strripos("Hello india!","IN");
 ?>
 </body>
 </html>
 

 

Output


strripos-php.jpg

You may also want to read these related articles Click here

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.