昨天想统计一下tianya帖子的回复数,就想统计一下一段字符中某段字符出现的次数,就百度了一下下,当然找到了这个函数拉~~~substr_count()官方说明:http://http://www.zjjv.com///manual/zh/function.substr-count.phphihi,herewego~~~~~~~~~说明:intsubstr_count(string$haystack,string$needle[,int$offset[,int$length]])substr_count()returnsthenumberoftimestheneedlesubstringoccursinthehaystackstring.Pleasenotethatn...