PHP strpos() function


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

PHP strpos() function

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

Syntax

strpos(string,find,start);

Example

<?PHP
    echo strpos("this is my website","my");
?>

Output

8