(PHP 4)
substr_count - вычисляет количество появлений подстроки. Описаниеint substr_count (string haystack, string needle)
substr_count() возвращает количество появлений подстроки needle в строке
haystack. Пример 1. substr_count()
print substr_count("This is a test", "is"); // выводит 2
|
|
|