(PHP 4 >= 4.0.0)
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