硕夏网html在线编辑器
HTML在线教程
改变方向
暗黑模式
运行代码
"; // Using strlen() to return the string length echo substr_count($str,"is")."
"; // The number of times "is" occurs in the string echo substr_count($str,"is",2)."
"; // The string is now reduced to "is is PHP"
echo substr_count($str,"is",3)."
"; // The string is now reduced to "s is PHP"
echo substr_count($str,"is",3,3)."
"; // The string is now reduced to "s i"
?>