• PHP Video Tutorials

PHP - Function Stripos



Syntax

stripos(string,find,start)

Definition and Usage

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

Return Values

It returns the position of the first occurrence of a string inside the another string on success or else shows a message as string is not found

Parameters

Sr.No Parameters & Description
1

string

It is used to the string to search

2

find

It is used to specifies the string to find

3

start

It specifies where to begin the search

Example

Try out the following example

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

This will produce following result −

10
php_function_reference.htm
Advertisements