PHP String processing function Daquan

Source: Internet
Author: User

PHP String processing function Daquan

addcslashes-Adds a backslash escape character for some characters inside a string
addslashes-Escapes characters inside a string in the specified way
Bin2Hex-converts binary data to hexadecimal representation
Chop-rtrim ()The alias function
CHR-Returns the ASCII code of a character
Chunk_split-Split a string into small pieces at a certain length of character
convert_cyr_string-Convert Slavic 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 the Crc32 polynomial of a string
Crypt-One-way hash encryption function
Echo-Used to display some content
Explode-Converts a string into an array form with a separator
fprintf-Return data as required and write directly to the document stream
get_html_translation_table-Returns an HTML entity that can be converted
Hebrev-Converts a Hebrew encoded string into visual text
HEBREVC-Converts a Hebrew encoded string into visual text
html_entity_decode-htmlentities ()Inverse function of the function to convert the HTML entity to a character
htmlentities-Converts some characters in a string to HTML entities
Htmlspecialchars_decode—Htmlspecialchars ()Inverse function of the function to convert the HTML entity to a character
Htmlspecialchars-Converts some characters in a string to HTML entities
implode-Converts an array to a string with a specific delimiter
Join-Convert an array to a string, alias of the Implode () function
Levenshtein-Calculates the difference size of two words
Localeconv-Get a number-related format definition
LTrim-Removes whitespace to the left of the string or the specified character
Md5_file-Encrypt a file with MD5 algorithm
MD5-Encrypt a string with the MD5 algorithm
Metaphone-judging the pronunciation rules of a string
Money_format-Output of numbers formatted according to parameters
Nl_langinfo-Query Language and local information
NL2BR-Replace the newline character "\ n" in the string with "<br/>"
Number_format-Output of numbers formatted according to parameters
Ord-Converts an ASCII code to one character
Parse_str-Convert a string of a certain format into a variable and a value
Print-Used to output a single value
printf-Display the data as required
Quoted_printable_decode-Encrypt a string into a 8-bit binary string
QuotemetA-escapes several specific characters
RTrim-Removes whitespace to the right of the string or the specified character
setlocale-Set local format for numbers, dates, etc.
Sha1_file-Encrypt a file with SHA1 algorithm
SHA1-Encrypt a string with the SHA1 algorithm
Similar_text-Compares two strings and returns the number of similar characters that the system thinks
Soundex-judging the pronunciation rules of a string
sprintf-Returns the data as required, but does not output
sscanf-The string can be formatted
Str_ireplace-matches and replaces strings like the Str_replace () function, but is case-insensitive
Str_pad-padding on both sides of the string
str_repeat-Repeated combinations of strings
Str_replace-Match and replace strings
str_rot13-ROT13 cryptographic processing of strings
Str_shuffle-Random ordering of characters inside a string
Str_split-Splits a string into an array by character spacing
Str_word_count-Get the English word information inside the string
strcasecmp-size comparison of strings, case insensitive
STRCHR-The alias of the part strstr () function that returns a string by comparison
strcmp-size comparison of strings
strcoll– Size comparison of strings based on local settings
strcspn-Returns the value of the character continuous non-matching length
Strip_tags-Remove HTML and PHP code from a string
stripcslashes-Inverse literal addcslashes () function escapes the processed string
Stripos-Find and return the position of the first match, match case insensitive
stripslashes-Inverse literal addslashes () function escapes the processed string
Stristr-Returns a part of a string by comparison, case-insensitive comparison
strlen-Gets the encoded length of a string
strnatcasecmp-size comparison of strings using natural sorting method, case-insensitive
strnatcmp-size comparison of strings using natural sort method
strncasecmp-size comparison of the first n characters of a string, case-insensitive
strncmp-size comparison of the first n characters of a string
strpbrk-Returns the part of a string by comparison
Strpos-Find and return the location of the first match
STRRCHR-Returns the part of a string by a backward-forward comparison
Strrev-Arrange all the letters in the string backwards
Strripos-Find and return the position of the first match from the back, match case insensitive
Strrpos– Find and return the position of the first match from the back forward
strspn-Match and return the value of the character continuous occurrence length
strstr-Returns the part of a string by comparison
strtok-Splits a string with a specified number of characters
Strtolower-Convert a string to lowercase
Strtoupper– Convert a string to uppercase
STRTR-Replace the string comparison
Substr_compare-Comparison of the string after interception
Substr_count-Calculates the number of occurrences of a character segment in a string
Substr_replace-Replace part of a character in a string
substr-Interception of strings
Trim-Remove whitespace on either side of the string or the specified character
Ucfirst-Converts the first letter of a given string to uppercase
Ucwords-Capitalize the first letter of each English word of the given string
vfprintf-Return data as required and write directly to the document stream
vprintf-Display the data as required
vsprintf-Returns the data as required, but does not output
WordWrap-Split the string by a certain character length

PHP String processing function Daquan

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.