The strpos() function finds the position of the first occurrence of a string inside another string.
| Parameter | Description |
|---|---|
| string | Required. Specifies the string to search |
| find | Required. Specifies the string to find |
| start | Optional. Specifies where to begin the search |
Find the position of the first occurrence of "php" inside the string: