PHP string function library _php Tutorial

Source: Internet
Author: User
PHP string function library, collected 51 PHP processing string functions.

PHP string function library, collected 51 PHP processing string functions.

Include, calculate string lengths, split strings, find strings, and so on.
Addslashes: String joins a slash.
Bin2Hex: binary turns into 16 decimal.
Chop: Remove continuous whitespace.
CHR: The character that returns the ordinal value.
Chunk_split: Divides the string into small segments.
Convert_cyr_string: Converts an old Slavic string into another string.
Crypt: The string is encrypted with DES encoding.
Echo: the output string.
Explode: Cuts the string.
Flush: Clear out the output buffer.
Get_meta_tags: Extract data from all meta tags of the file.
Htmlspecialchars: Converts special characters into HTML format.
Htmlentities: Turns all characters into HTML strings.
Implode: Turns the array into a string.
Join: Turns the array into a string.
LTrim: Remove continuous whitespace.
MD5: Computes the MD5 of the string.
NL2BR: Converts the newline character to.
ORD: Returns the ordinal value of a character.
PARSE_STR: Parses the query string into a variable.
Print: Output string.
printf: Output formatted string.
Quoted_printable_decode: Converts a QP encoded string into a 8-bit string.
Quotemeta: Add reference symbol.
Rawurldecode: Restore from a URL-specific format string to a normal string.
Rawurlencode: Encodes a string into a URL-specific format.
SetLocale: Configure geo-information.
Similar_text: Calculates the similarity of strings.
Soundex: Calculating the phonetic value of a string
sprintf: Formats the string.
STRCHR: Look for the first occurrence of the character.
strcmp: string comparison.
STRCSPN: The length of different strings.
Strip_tags: Remove HTML and PHP markup.
Stripslashes: Remove the backslash character.
Strlen: Gets the string length.
Strrpos: Looks for a character in the string where the last occurrence occurs.
Strpos: Looks for a character in a string that appears first.
STRRCHR: Gets the string that appears at the last occurrence of a character.
Strrev: Reverses the string.
STRSPN: Find out how many strings fall in another string mask.
Strstr: Returns the string from the beginning of the string to the end of a string.
Strtok: Cuts the string.
Strtolower: All strings are converted to lowercase.
Strtoupper: All strings are capitalized.
Str_replace: String substitution.
STRTR: Converts some characters.
SUBSTR: Takes a partial string.
Trim: Truncate the space between the end of the string.
Ucfirst: capitalizes the first character of the string.
Ucwords: capitalizes the first letter of each word in a string.


http://www.bkjia.com/PHPjc/446710.html www.bkjia.com true http://www.bkjia.com/PHPjc/446710.html techarticle PHP string function library, collected 51 PHP processing string functions. PHP string function library, collected 51 PHP processing string functions. Include, calculate string length, split character ...

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