What is the function of PHP string function Stripos ()? The String function Stripos () is the first occurrence of a string in another string, and the function is case-insensitive. It is convenient to use, and its associated function has Strripos ()-Finds the last occurrence of a string in another string (case-insensitive) Strpos ()-finds the position of the first occurrence of a string in another string (case-sensitive) strrpos ()- Find the last occurrence of a string in another string (case-sensitive) Let's take a look at the syntax of the Stripos () function Stripos (String,find,start) The function has three parameters, where the first two arguments are required, The third parameter is an optional parameter that describes the string required. Specifies the string to be searched. Find required. Specifies the character to find. Start is optional. Specify where to start the search. The return value of the Stripos () function Stripos () function returns a string in another string
1. The definition and usage of PHP string function Stripos ()
Summary: The string function Stripos () is the first occurrence of a string in another string, and the function is case insensitive. It's easy to use.
2. PHP string function strip_tags () Usage Summary
Summary: The PHP strip_tags () function is one of a string function that removes HTML, XML, and PHP tags from a string. Then return the string after removing the tag, this article collects a few articles about PHP strip_tags () function, hope to understand the operation string function Strip_tags () helpful.
3. String, encoding, UTF-8 code in PHP
Introduction: Recently read a lot of coding aspects of the article, so divided into two posts "PHP, String, code, UTF-8" related knowledge, this post is the upper half, divided into four pieces of content, respectively, "the definition and use of strings", "string Conversion", "PHP string Nature", "multibyte string". The upper half is the basis, and the next article, "Best Practices for PHP and UTF-8," may be a little more dry.
4. Detailed Introduction to PHP and UTF-8 best Practices
Introduction: "String in PHP, encoding, UTF-8" in the article describes some of the basic knowledge of the column, more boring, now point to a useful--php string processing best practices, this article is "PHP, string, code, UTF-8" related knowledge of the second part. Let's start with the conclusion-using UTF-8 encoding in all aspects of PHP.
5. Efficiency comparison of several string connections in PHP
Introduction: The following small series for everyone to bring an article about PHP several string connection efficiency comparison (detailed). Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
6. Implement string flipping in PHP
Introduction: This article mainly introduces the implementation of PHP string flipping method, has a good reference value, following the small series to see it together
7. "PHP" string-access substring
Summary: Want to know if a string contains a specific substring. For example, want to see if an email address contains an @.
8. Strings, encodings, UTF-8 in PHP
Introduction: Recently read a lot of coding aspects of the article, so divided into two posts "PHP, String, code, UTF-8" related knowledge, this post is the upper half, divided into four pieces of content, respectively, "the definition and use of strings", "string Conversion", "PHP string Nature", "multibyte string". The upper part compares the basis
9. PHP Common string processing function usage Example "convert, escape, intercept, compare, find, invert, cut"
Introduction: This article mainly introduces PHP common string processing function usage, combined with the case of PHP for the case of casing conversion, escape, intercept, compare, find, reverse, cut and other operations, the need for friends can refer to the next
PHP Common String Output method analysis (echo,print,printf and sprintf)
Introduction: This article mainly introduces PHP commonly used string output method, combined with instance form analysis of ECHO, print, printf and sprintf output string specific usage and related use skills, the need for friends can refer to the following
"Related question and answer recommendation":
yii-php string inside have "" and ", itself is string what to do?
PHP string Matching
Ask for a code that replaces the contents of a PHP string with an asterisk
PHP string has a length, but the content is empty?
Heredoc and Nowdoc structures in PHP strings are often infrequently used?