PHP Trojan-free function collection (character processing function, encryption and decryption algorithm)

Source: Internet
Author: User

PHP Trojan-free function collection (character processing function, encryption and decryption algorithm)

AddSlashes: adds a slash to the string.
Bin2hex: Binary to hexadecimal.
Chop: removes consecutive gaps.
Chr: returns the character of the ordinal value.
Chunk_split: Splits a string into segments.
Convert_cyr_string: Convert the ancient Slavic string to another string.
Crypt: encrypt the string with DES encoding.
Echo: Output string.
Explode: Cut string.
Flush: clears the output buffer.
Get_meta_tags: extracts all metadata marked by meta from the file.
Htmlspecialchars: convert special characters into HTML format.
Htmlentities: converts all characters into HTML strings.
Implode: converts an array into a string.
Join: converts an array into a string.
Ltrim: removes consecutive white spaces.
Md5: Calculate the MD5 of the string.
Nl2br: converts a line break to <br>.
Ord: returns the ordinal value of a character.
Parse_str: parses the query string into a variable.
Print: Output string.
Printf: output the formatted string.
Quoted_printable_decode: convert an qp encoded string to an 8-Bit String.
QuoteMeta: Add a reference symbol.
Rawurldecode: Restores a string from a URL-specific format to a normal string.
Rawurlencode: encode a string into a URL-specific format.
Setlocale: configure the region information.
Similar_text: String similarity calculation.
Soundex: calculates the pronunciation of a string.
Sprintf: format the string.
Strchr: Find the first occurrence character.
Strcmp: String comparison.
Strcspns: the length of different strings.
Strip_tags: removes HTML and PHP tags.
StripSlashes: removes the backslash.
Strlen: gets the string length.
Strrpos: Find the last occurrence of a character in the string.
Strpos: searches for the first occurrence of a character in a string.
Strrchr: gets the string starting from the last occurrence of a character.
Strrev: reverse string.
Strspns: identifies the number of masks that a string falls into another string.
Strstr: returns the string from the beginning to the end of a string.
Strtok: Cut string.
Strtolower: converts all strings to lowercase letters.
Strtoupper: converts all strings to uppercase.
Str_replace: String replacement.
Strtr: converts certain characters.
Substr: obtains some strings.
Trim: removes spaces at the beginning and end of a string.
Ucfirst: uppercase for the first character of the string.
Ucwords: change the first letter of each character in the string to uppercase. QQ: 814360954 if you have any questions, feel free to leave a message.

Related Article

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.