A brief analysis of 51 PHP functions for handling strings _php Tutorial

Source: Internet
Author: User
Tags chop
Include, calculate string lengths, split strings, find strings, and so on.
1.AddSlashes: String join Slash.
2.bin2hex: binary turns into 16 decimal.
3.Chop: Remove continuous blanks.
4.CHR: The character that returns the ordinal value.
5.chunk_split: Divides the string into small segments.
6.convert_cyr_string: Converts an old Slavic string into another string.
7.crypt: The string is encrypted with DES encoding.
8.echo: Output string.
9.explode: Cut the string.
10.flush: Clear out the output buffer.
11.get_meta_tags: Extract data from all meta tags of the file.
12.htmlspecialchars: Converts special characters into HTML format.
13.htmlentities: Turns all characters into HTML strings.
14.implode: Turns the array into a string.
15.1join: Turns the array into a string.
16.ltrim: Remove continuous blanks.
17.MD5: Computes the MD5 of the string.
18.NL2BR: Converts a newline character to

19.ORD: Returns the ordinal value of a character.
20.PARSE_STR: Parses the query string into a variable.
21.print: Output string.
22.PRINTF: Output formatted string.
23.quoted_printable_decode: Converts a QP encoded string into a 8-bit string.
24.QuoteMeta: Add reference symbol.
25.rawurldecode: Restore from a URL-specific format string to a normal string.
26.rawurlencode: Encodes a string into a URL-specific format.
27.setlocale: Configure geo-information.
28.similar_text: Calculates the similarity of strings.
29.soundex: Calculates the phonetic value of a string
30.SPRINTF: Format the string.
31.STRCHR: Look for the first occurrence of the character.
32.STRCMP: string comparison.
33.STRCSPN: Length of different strings.
34.strip_tags: Remove HTML and PHP markup.
35.strlen: Gets the string length.
36.strrpos: Looks for a character in the string where the last occurrence occurs.
37.strpos: Looks for a character in the string that appears first.
38.STRRCHR: Gets the string that appears at the last occurrence of a character.
39.strrev: Reverses the string.
40.STRSPN: Find out how many strings fall in another string mask.
41.strstr: Returns the string from the beginning of the string to the end of a string.
42.strtok: Cut the string.
43.strtolower: All strings are converted to lowercase.
44.strtoupper: All strings are capitalized.
45.str_replace: String substitution.
46.STRTR: Converts some characters.
47.SUBSTR: Take a partial string.
48.trim: Truncates the string to the end of the space.
49.ucfirst: capitalizes the first character of the string.
50.ucwords: Capitalize the first letter of each word in the string.
51.StripSlashes: Remove the backslash character.

http://www.bkjia.com/PHPjc/328094.html www.bkjia.com true http://www.bkjia.com/PHPjc/328094.html techarticle include, calculate string lengths, split strings, find strings, and so on. 1.AddSlashes: String join Slash. 2.bin2hex: binary turns into 16 decimal. 3.Chop: Remove ...

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