(PHP 4 )
substr_count()은 haystack 문자열에 있는 needle 부분 문자열의 수를 반환한다.
예 1. substr_count() 예
print substr_count("This is a test", "is"); // 2를 출력한다.