PHP String function

Source: Internet
Author: User
Tags md5 md5 hash rtrim
Introduction to PHP String

String string functions allow you to manipulate strings. installation

The String function is part of the core of PHP. These functions can be used without installation. PHP String function

PHP: Indicates the earliest version of PHP that supports this function.

function Description PHP
Addcslashes () Adds a backslash before the specified character. 4
Addslashes () Adds a backslash before the specified predefined character. 3
Bin2Hex () Converts a string of ASCII characters to a hexadecimal value. 3
Chop () Alias for RTrim (). 3
Chr () Returns a character from the specified ASCII value. 3
Chunk_split () Splits a string into a series of smaller parts. 3
Convert_cyr_string () Converts a character from one Cyrillic character to another. 3
Convert_uudecode () Decodes a uuencode encoded string. 5
Convert_uuencode () Strings are encoded using the UUENCODE algorithm. 5
Count_chars () Returns information about the characters used by the string. 4
CRC32 () Computes the 32-bit CRC of a string. 4
Crypt () A one-way string cipher (hashing). 3
Echo () The output string. 3
Explode () Break strings into arrays. 3
fprintf () Writes the formatted string to the specified output stream. 5
Get_html_translation_table () Return to the translation table. 4
Hebrev () Converts a stream of Hebrew text from right to left to a stream left to right. 3
HEBREVC () Ditto, and convert (\ n) to <br/>. 3
Html_entity_decode () Converts an HTML entity to a character. 4
Htmlentities () Converts a character to an HTML entity. 3
Htmlspecialchars_decode () Converts some predefined HTML entities to characters. 5
Htmlspecialchars () Converts some predefined characters to HTML entities. 3
Implode () Combines the elements of an array into a single string. 3
Join () Alias for Implode (). 3
Levenshtein () Returns the Levenshtein distance between two strings. 3
Localeconv () Returns an array containing the format of local numbers and currency information. 4
LTrim () Deletes a space or other predefined characters from the left side of the string. 3
MD5 () Computes the MD5 hash of the string. 3
Md5_file () MD5 hash of the computed file. 4
Metaphone () Computes the Metaphone key for the string. 4
Money_format () Formats the string as a currency string. 4
Nl_langinfo () Returns the specified local information. 4
NL2BR () Inserts an HTML newline character before each new row in the string. 3
Number_format () Format a number by a thousands group. 3
Ord () Returns the ASCII value of the first character of a string. 3
Parse_str () Parses the query string into a variable. 3
Print () Outputs one or more strings. 3
printf () The output formatted string. 3
Quoted_printable_decode () Decodes the quoted-printable string. 3
Quotemeta () Adds a backslash before certain predefined characters in the string. 3
RTrim () Deletes white space characters or other predefined characters from the end of the string. 3
SetLocale ()

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.