显示文本框

strpos()

« strpbrk | strrchr »
<?php
$mixed 
strpos (
    
// string $haystack
    
// mixed $needle
    
  // [int $offset = 0]
);
?>
结果
$mixed = 0
示例
#1 strpos  ("abc",
 
"a")
#2 strpos  ("abc",
 
"a")
#3 strpos  ("abcdef abcdef",
 
"a",
 
1)
另请参阅
grapheme_strpos, iconv_strpos, mb_strpos, preg_match, stripos, strpbrk, strripos, strrpos, strstr, substr