|
|
|
|
|
|
Function strpos | Language: PHP
|
Syntax
| strpos(source, search, offset) |
Parameters
| STRING | source | Source String
| | STRING | search | String to search for
| | INT | offset | Optional. Which character in source string to start searching |
Return value
Description
This function returns the first position of the string search in the string source, or false if not found.
Use the === operator for testing the return value of this function. |
PHP Sample Code
if(strpos($mystring, $findme) === false) ... |
|
|
|