PHP String processing function Daquan

Source: Internet
Author: User
Tags crc32 first string md5 hash rtrim sha1 sha1 hash
  • addcslashes-using backslashes to escape characters in a string in C language style
  • addslashes-referencing strings with backslashes
  • bin2hex-converts binary data to hexadecimal notation
  • Aliases for Chop-rtrim
  • chr-returns the specified character
  • chunk_split-splitting a string into small chunks
  • Convert_cyr_string-converts a character from one Cyrillic character to another
  • convert_uudecode-decoding a uuencode encoded string
  • convert_uuencode-encoding a string with Uuencode
  • count_chars-returns information about the characters used in the string
  • crc32-computes a crc32 polynomial of a string
  • crypt-one-way string hash
  • echo-output one or more strings
  • explode-using one string to split another string
  • Fprintf-writes the formatted string to the stream
  • get_html_translation_table-returns the conversion table after using Htmlspecialchars and htmlentities
  • hebrev-Convert Logical Order Hebrew (logical-hebrew) to Visual Order Hebrew (visual-hebrew)
  • hebrevc-converts logical Order Hebrew (logical-hebrew) to Visual Order Hebrew (visual-hebrew), and converts newline characters
  • hex2bin-converting a hexadecimal string to a binary string
  • Html_entity_decode-convert all HTML entities to their applicable characters
  • Htmlentities-convert all applicable characters to HTML entities
  • Htmlspecialchars_decode-converting special HTML entities back to normal characters
  • Htmlspecialchars-convert special characters to HTML entities
  • Implode-converts the value of a one-dimensional array to a string
  • join-alias Implode
  • Lcfirst-makes the first character of a string lowercase
  • levenshtein-calculating the editing distance between two strings
  • Localeconv-get Numeric formatting information
  • ltrim-Delete whitespace characters (or other characters) at the beginning of a string
  • md5_file-computes the MD5 hash value of the specified file
  • md5-Calculating the MD5 hash value of a string
  • Metaphone-calculate the Metaphone key of a string
  • Money_format-formats a number as a currency string
  • Nl_langinfo-query Language and locale information
  • nl2br-inserting HTML wrap tags before all new lines in the string
  • number_format-formatting a number in thousands separators
  • Ord-the ASCII value of the returned character
  • parse_str-parsing a string into multiple variables
  • print-Output string
  • printf-Output formatted string
  • Quoted_printable_decode-convert a quoted-printable string to an 8 bit string
  • Quoted_printable_encode-convert a 8 bit string to a quoted-printable string
  • Quotemeta-quote Meta characters
  • rtrim-Delete whitespace characters (or other characters) at the end of a string
  • Setlocale-set locale Information
  • sha1_file-calculating the SHA1 hash value of a file
  • sha1-calculating the SHA1 hash value of a string
  • similar_text-calculating the similarity of two strings
  • Soundex-calculate the Soundex key of a string
  • Sprintf-return a formatted string
  • sscanf-parsing input characters according to the specified format
  • str_getcsv-parsing a CSV string as an array
  • Ignoring case versions of Str_ireplace-str_replace
  • Str_pad-fills a string with another string for a specified length
  • str_repeat-repeating a string
  • str_replace-substring substitution
  • str_rot13-performing ROT13 conversions on strings
  • Str_shuffle-randomly disrupts a string
  • str_split-converting a string to an array
  • Str_word_count-returns the use of words in a string
  • strcasecmp-binary Security comparison string (case insensitive)
  • strchr-alias Strstr
  • strcmp-Binary Security string comparison
  • strcoll-locale-based string comparisons
  • Strcspn-gets the length of the starting substring of the mismatched matte
  • strip_tags-removing HTML and PHP tags from a string
  • stripcslashes-dereference A string that is escaped with addcslashes
  • stripos-find where strings first appear (case insensitive)
  • stripslashes-dereference A reference string
  • Ignoring case versions of the STRISTR-STRSTR function
  • strlen-Get string length
  • Strnatcasecmp-comparing strings using the natural order algorithm (case insensitive)
  • Strnatcmp-comparing strings using natural sorting algorithms
  • strncasecmp-binary security compare several characters at the beginning of a string (case insensitive)
  • strncmp-binary security compare several characters at the beginning of a string
  • strpbrk-to find any one character of a set of characters in a string
  • strpos-find where the string first appears
  • Strrchr-finds the last occurrence of a specified character in a string
  • strrev-Inverse string
  • Strripos-calculates the location of the last occurrence of the specified string in the target string (case insensitive)
  • Strrpos-calculates the last occurrence of the specified string in the target string
  • strspn-computes the length of the first string in the specified set of characters, all of which are present in the strings.
  • strstr-finding the first occurrence of a string
  • strtok-Tag Split string
  • strtolower-converting a string to lowercase
  • strtoupper-converting a string to uppercase
  • strtr-converting a specified character
  • substr_compare-binary Security comparison string (specified length from offset position)
  • substr_count-count occurrences of a string
  • substr_replace-a substring of a replacement string
  • substr-returns a substring of a string
  • trim-remove whitespace characters (or other characters) from the beginning and end of a string
  • Ucfirst-converts the first letter of a string to uppercase
  • ucwords-converts the first letter of each word in a string to uppercase
  • vfprintf-writing a formatted string to a stream
  • vprintf-Output formatted string
  • vsprintf-returning a formatted string
  • wordwrap-break string to a specified number of strings
  • 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.