int strpos ( string haystack, mixed needle [, int offset] ) returns the index of the beginning of a substring's first occurrence within a string
<? $string = "This is a strpos( ) test"; print strpos($string, "s") . "\n"; ?>