strpos

PHP 4, PHP 5, PHP 7, PHP 8
strpos - Find the position of the first occurrence of a substring in a string
Strpos Online Tool
Manual
Code Examples

Example #1 Using ===

PHP Version:

Example #2 Using !==

PHP Version:

Example #3 Using an offset

PHP Version:


Example #4 of strpos

PHP Version:


Function strpos:

Strings Functions

Most used PHP functions