How to count the number of substring using mb_substr_count() in php?
In PHP, we can use the function mb_substr_count() to count the total number of substrings in a given string.
1. Code:
2. Example:
Input:
string: "This is a test of Soltuts.com"; substring: Soltuts
Output:
output: 1