欢迎光临
我们一直在努力

PHP查找字符串位置

查找位置int strpos(string str,string needle,[int offset]) 没有找到返回的是false返回从offset开始在str中查找needle的位置$eg:$t-'hello world';echo strpos($t,'o',5);//7 从第o开始,查找o这个变量的位置,结果为7

赞(0)
未经允许不得转载:福利吧|福利社|fuliba » PHP查找字符串位置

相关推荐

  • 暂无文章