PHP stripos() function


In this article, We will explain to you PHP stripos() function with example.

PHP stripos() function

The stripos() function is a string function and case-insensitive. which is used to find the position of the first occurrence of a case-insensitive substring inside another string. so you can see our PHP String Function example.

Syntax

stripos(string,find,start);

Example

<?PHP
   echo stripos("This is my website","My");
?>

Output

8