PHP

PHP Menu

PHP

strrpos() Function - Definition, Syntax, Parameters, Examples

Definition

The strrpos() function finds the position of the last occurrence of a string(case-sensitive) inside another string.

Syntax

strrpos(string, find, start)

Parameters

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

Example

<?php
echo strrpos("Welcome to the PHP Tutorials. Learn php quickly.", "php");

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods