PHP Basic Tutorial Strrpos function using tutorial _php Tutorial

Source: Internet
Author: User
Strrpos and Strripos Use the same, let's take a look at it.

Definition and usage
The strrpos () function determines whether find will appear in string.

This function returns False if there is a success.

Strrpos Syntax

Strrpos (String,find,start)
String: Required. Specify string Search


Find: Required. The specified string is found


Start: Optional. Specify where to start the search

Note: the Strrpos () function is case-sensitive

Echo Strrpos ("Hello world!", "Wo");
?>
Output is 6
Look again at an example.
Echo Strrpos ("www.111cn.cn!", "CN");
?>
Output is 0
Do you know why? Because Strrpos differs in size, it differs from strripos in case-sensitive.


http://www.bkjia.com/PHPjc/445519.html www.bkjia.com true http://www.bkjia.com/PHPjc/445519.html techarticle Strrpos and Strripos Use the same, let's take a look at it. Define and use the Strrpos () function to determine if find will appear in string. The success of this function if it exists, ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.