Getting Started with PHP: strrchr Example Tutorial _php tutorial

Source: Internet
Author: User
Getting Started with PHP: strrchr Example Tutorials

Definition and usage
The STRRCHR () function determines the position of a string that takes place on a series of another string and returns all characters starting from this position to the end.

If the character cannot be found, this function returns FALSE.

Grammar

STRRCHR (String,char)
Parameter Description
String must be selected. Specifying a search string
Char must be selected. The specified string. If this is a number, it will seek to match the ASCII value of the character to this number

Hint and description Hint: This feature is binary safe.
Example 1 echo strrchr ("Hello world!", "World");
?>

Output results.

world!

Let's look at a STRRCHR instance.

Example 2
In this example, we will search for the ASCII value of the string "0":

Echo strrchr ("Hello world!", 111);
?>
Output results. orld!

Www.111cn.cn/phper/php.html


http://www.bkjia.com/PHPjc/445516.html www.bkjia.com true http://www.bkjia.com/PHPjc/445516.html techarticle Getting Started with PHP: STRRCHR instance Tutorial definition and usage the STRRCHR () function determines the position on which a series of other strings have occurred, and returns all characters from this standpoint to the end ...

  • 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.