PHP Tutorial: Stristr Function Example Tutorial _php tutorial

Source: Internet
Author: User
PHP Tutorial: Stristr Function Example Tutorial

Definition and usage
The Stristr () function search first appeared with a series of internal other strings.

This function returns the rest of the string (from the matching point), or False if the string search is not found.

Grammar

Stristr (String,search)
String: Required to find the specified character
Search: Required. The specified string search. If this parameter is a number, it will seek to match the number of characters in the ASCII value
Hints and Instructions Note: This feature is binary safe. Note: This feature is case sensitive. For case-sensitive searches, use STRSTR ().

Example 1

Echo stristr ("Hello world!", "World");
?>


Return to. wordl!

http://www.bkjia.com/PHPjc/631368.html www.bkjia.com true http://www.bkjia.com/PHPjc/631368.html techarticle PHP Tutorial: stristr function Instance tutorial definition and usage the STRISTR () function search first appeared with a series of internal other strings. This function returns the rest of the string (from the matching point) ...

  • Related Article

    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.