Mega Code Archive

 
Categories / Php / Strings
 

Int strpos ( string haystack, mixed needle [, int offset] ) returns the index of the beginning of a substrings first occurrence wit

<?     $string = "This is a strpos( ) test";     print strpos($string, "s") . "\n"; ?>