PHP

PHP Menu

PHP

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

Definition

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

Syntax

strripos(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 strripos("Welcome to the PHP Tutorials! Learn PHP quickly.", "PHP");

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods