首页 > php函数 > php入门教程:stripos 实例教程

php入门教程:stripos 实例教程

定义和用法

该stripos()函数返回位置,首次出现了字串的开始位置。

如果字符串是没有发现,此功能返回FALSE 。

stripos(string,find,start)
参数 说明
string: 必须先,
find: 必须要查找的字符串
start: Optional. Specifies where to begin the search

好了下面我们来看看.stripos例子.

<?php
echo stripos("Hello world!","WO");
?>

输出结果为.

6

 


文章地址:http://www.phprm.com/function/525b2ef5a9960cc7d3bd9fc4a757ac83.html

转载随意^^请带上本文地址!

标签:none

发表留言