substr_count

(PHP 4 , PHP 5)

substr_count -- бНГБПЮЫЮЕР ВХЯКН БУНФДЕМХИ ОНДЯРПНЙХ

нОХЯЮМХЕ

int substr_count ( string haystack, string needle)

substr_count() бНГБПЮЫЮЕР ВХЯКН БУНФДЕМХИ ОНДЯРПНЙХ needle Б ЯРПНЙС haystack. гЮЛЕРЭРЕ, ВРН ОНХЯЙ БЕДЕРЯЪ Я СВЕРНЛ ПЕЦХЯРПЮ ЯХЛБНКНБ.

Пример 1. оПХЛЕП ХЯОНКЭГНБЮМХЪ substr_count()

<?php
echo substr_count("This is a test", "is"); // 2
?>

яЛ. РЮЙФЕ НОХЯЮМХЕ ТСМЙЖХИ count_chars(), strpos(), substr() Х strstr().


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ