菜单切换
FACESOHO知行者
心灵
记录
远方
赞赏工具
源代码
运行
保存
"; // 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" ?>
运行结果
12
2
2
1
0