substr_count
reactphp/event-loop
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Count the number of substring occurrences
<?php substr_count
(
string $haystack
,
string $needle
,
int $offset
=
0
,
?
int $length
=
null
):
int