PHP - stripos 函式



語法

stripos(string,find,start)

定義和用法

它用於查詢一個字串在另一個字串中第一次出現的位

返回值

如果成功,則返回字串在另一個字串中第一次出現的位

引數

序號 引數和描述
1

string

要搜尋的字串。

2

find

要查詢的字串。

3

start

指定搜尋的起始位置。

示例

嘗試以下示例

<?php
   echo stripos("tutorials point","point");
?>

這將產生以下結果:

10
php_function_reference.htm
廣告