substr_count()计算子串在字符串中出现的次数
<?php $str = "This is nice"; echo strlen($str)."<br>"; // 使用 strlen() 来返回字符串长度 echo substr_count($str,"is")
/www/wwwroot/xunjs.com/app/index/controller/Tags.php:34:string 'substr_count' (length=12)
<?php $str = "This is nice"; echo strlen($str)."<br>"; // 使用 strlen() 来返回字符串长度 echo substr_count($str,"is")