substr_count

substr_count -- Count the number of substring occurrences

Description

int substr_count ( string haystack, string needle)

Esimerkki 1 . substr_count( ) example