|
PHP5中文手册
strpos(PHP 4, PHP 5) strpos — Find position of first occurrence of a string 说明
int strpos
( string $haystack
, mixed $needle
[, int $offset
] )
Returns the numeric position of the first occurrence of needle in the haystack string. Unlike the strrpos() before PHP 5, this function can take a full string as the needle parameter and the entire string will be used. 参数
返回值Returns the position as an integer. If needle is not found, strpos() will return boolean FALSE. 范例
Example#1 strpos() examples
<?php 注释
|