PHP strpos() Function
Complete PHP String Reference
Definition and Usage
The strpos() function returns the position of the first occurrence of a
string inside another string.
If the string is not found, this function returns FALSE.
Syntax
strpos(string,find,start)
|
Parameter |
Description |
string |
Required. Specifies the string to search |
find |
Required. Specifies the string to find |
start |
Optional. Specifies where to begin the search |
Tips and Notes
Note: The strpos() function is case-sensitive.
Example
<?php
echo strpos("Hello world!","wo");
?>
|
The output of the code above will be:
Complete PHP String Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|