|
PHP5中文手册
substr_count(PHP 4, PHP 5) substr_count — Count the number of substring occurrences 说明
int substr_count
( string $haystack
, string $needle
[, int $offset
[, int $length
]] )
substr_count() returns the number of times the needle substring occurs in the haystack string. Please note that needle is case sensitive.
参数
返回值This functions returns an integer. 更新日志
范例
Example#1 A substr_count() example
<?php |