$haystack
, string $needle
[, int $offset
= 0
[, 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 function doesn't count overlapped substrings. See the example below!