PHP Manualstrpos(PHP 4, PHP 5) strpos — Find the position of the first occurrence of a substring in a string Description
Find the numeric position of the first occurrence of
Parameters
Return Values
Returns the position of where the needle exists relative to the beginning of
the
Returns Warning
This function may
return Boolean Examples
Example #1 Using ===
<?php Example #2 Using !==
<?php Example #3 Using an offset
<?php Notes
See Also
![]() |
PHP-Index
New Tutorial entries
|