search
Homephp教程php手册php基础教程strrpos 函数 使用教程

php基础教程strrpos 函数 使用教程

Jun 13, 2016 am 11:16 AM
phpstrrposunderandusefunctionBaseusTutorialusageof

 

strrpos 与 strripos用法相同的,下面我们来看看吧.

定义和用法
strrpos ( )函数判断 find是否会出现在string里面。

这个函数如果存在的成功,否则返回FALSE 。

strrpos 语法

strrpos(string,find,start)
string:必需。指定字符串搜索


find:所需。指定的字符串找到


start:可选。指定从何处开始搜寻

注: strrpos ( )函数是区分大小写

echo strrpos("Hello world!","wo");
?>
输出结果为6
再看一例子.
echo strrpos("WWW.111CN.CN!","cn");
?>
输出为0
知道为什么吗?因为strrpos区别大小小,它与strripos不同的是是否区别大小写.


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software