PHP Common String functions

Source: Internet
Author: User

addcslashes-to add a backslash escape character for some characters inside a string

Addslashes-the characters inside a string in a specified manner

bin2hex-converts binary data to hexadecimal representations

alias function for Chop-rtrim ()

chr-returns the ASCII code of a character

chunk_split-the string into small chunks by a certain character length

Convert_cyr_string-converts Cyrillic characters to other characters

convert_uudecode-Decrypt A string

convert_uuencode-Encrypt a string

count_chars-returns the character usage information inside a string

crc32-computes a crc32 polynomial of a string

crypt-One-way hash encryption function

echo-to display some content

Explode-converts a string into an array with a delimiter

fprintf-returns the data as required and writes directly to the document stream

Get_html_translation_table-returns HTML entities that can be converted

hebrev-Converts a Hebrew encoded string to a visual text

hebrevc-Converts a Hebrew encoded string to a visual text

Inverse function of the html_entity_decode-htmlentities () function to convert an HTML entity to a character

Htmlentities-converts some characters in a string to an HTML entity

Inverse function of the htmlspecialchars_decode-htmlspecialchars () function to convert an HTML entity to a character

Htmlspecialchars-converts some characters in a string to an HTML entity

implode-converts an array to a string with a specific delimiter

join-converts an array to a string, the alias of the Implode () function

levenshtein-calculates the difference size of two words

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.