substr_count -- 부분문자열의 수를 센다
int substr_count ( string haystrack, string needle)
print substr_count("This is a test", "is"); // 2를 출력한다.
'프로그래밍 언어 > php' 카테고리의 다른 글
getdate - 날짜 나누기 (0) | 2007.02.02 |
---|---|
str_pad() (0) | 2007.02.02 |
문자열 비교 (0) | 2007.02.02 |
memory_get_usage (0) | 2007.02.02 |
set_time_limit() (0) | 2007.02.02 |