Php entry: strrchr instance tutorial _ PHP Tutorial

Source: Internet
Author: User
Php entry: strrchr instance tutorial. Php Getting started: strrchr instance tutorial definition and usage the strrchr () function determines that a series of other strings occur, and returns all the characters from this standpoint to end the php Getting started: strrchr instance tutorial

Definition and usage
The strrchr () function determines the position where another string occurs and returns all characters starting from this position to end the string.

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

Syntax

Strrchr (string, char)
Parameter Description
String is required. Specify search string
Char is required. The specified string. If this is a number, it will seek to match the ASCII value of the character.

Tip and note: This function is binary secure.
Example 1 Echo strrchr ("Hello world! "," World ");
?>

Output result.

World!

Let's take a look at a strrchr instance.

Example 2
In this example, the ASCII value of the search string is "0 ":

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

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


The definition and usage of the explain instance tutorial this strrchr () function determines that a series of other strings occur and returns all characters starting from this standpoint to 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.