mb_substr_count
Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Count the number of substring occurrences
<?php mb_substr_count
(
string $haystack
,
string $needle
, ?
string $encoding
=
null
):
int