substr_count

(PHP 4 >= 4.0.0)

substr_count -- SpoΦφtat poΦet v²skyt∙ °et∞zce

Popis

int substr_count ( string haystrack, string needle)

substr_count() vracφ poΦet v²skyt∙ °et∞zce needle v °et∞zci haystack string.

P°φklad 1. Ukßzka substr_count()

print substr_count("This is a test", "is"); // prints out 2