Php string functions

Source: Internet
Author: User
What is the role of the php string function stripos? The stripos () function is used to locate the first occurrence of a string in another string. it is case-insensitive. It is very convenient to use. its related functions include strripos () & amp; nbsp;-find the last position of the string in another string (case insensitive) strpos () & amp; nbsp;-find the position (case sensitive) of the string that appears for the first time in another string strrpos () & amp; nbsp;-find the string in... what is the role of the php string function stripos? The stripos () function is used to locate the first occurrence of a string in another string. it is case-insensitive. It is very convenient to use, and its related functions include strripos ()-find the position of the last occurrence of the string in another string (case insensitive) strpos () -Search for the position (case sensitive) of the first occurrence of a string in another string strrpos ()-Search for the position (case sensitive) of the last occurrence of a string in another string) next let's take a look at the stripos () function syntax stripos (string, find, start). This function has three parameters. The first two parameters are required, the third parameter is optional. the description string is required. Specifies the string to be searched. Find is required. Specifies the characters to be searched. Start is optional. Specifies the location where the search starts. The return value of the stripos () function returns a string in another string

1. php string function stripos () definition and usage

Brief introduction: This article mainly introduces common php string output methods, and analyzes the specific usage and related skills of echo, print, printf, and sprintf output strings in the form of examples, for more information, see

[Related Q & A recommendations ]:

Yii-php strings contain both "" and ". what if they are strings?

Php string matching

Ask a php code that replaces the character string with an asterisk.

Php string has a length, but the content is blank?

The Heredoc and Nowdoc structures in PHP strings are not commonly used?

The above is a detailed description of php string functions. For more information, see other related articles in the first PHP community!

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.