Definition
The stripos() function finds the position of the first occurrence of a string inside another string.
Syntax
stripos(string, find, start)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to search. |
find |
Required. Specifies the string to find. |
start |
Optional. Specifies where to begin the search. |
Example
<?php
echo stripos("Welcome to PHP! Here are the PHP string functions.","PHP");