亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

PHP substr_count() 函數(shù)

定義和用法

substr_count() 函數(shù)計算子串在字符串中出現(xiàn)的次數(shù)。

語法

substr_count(string,substring,start,length)
參數(shù) 描述
string 必需。規(guī)定要檢查的字符串。
substring 必需。規(guī)定要檢索的字符串。
start 可選。規(guī)定在字符串中何處開始搜索。
length 可選。規(guī)定搜索的長度。

例子

<?php
echo substr_count("Hello world. The world is nice","world");
?>

輸出:

2