Learning notes PHP string processing function summary_php tutorial

Source: Internet
Author: User
Tags crc32
Learning notes PHP string processing function summary. PHP has been developing for a long time and many users are familiar with PHP. here I will post my personal understanding of PHP string processing functions, hoping to help you, PHP itself is a simple and powerful PHP. after a long period of development, many users know PHP very well. here I will share my personal understanding of PHP string processing functions and hope to help you, PHP itself is a simple and powerful language.

PHP has core features such as powerful string and array processing capabilities, and greatly improved support for object-oriented programming (PHP5 and later versions ). Using standard and optional extension modules, PHP applications can connect to more than a dozen databases such as MySQL or Oracle, draw, create PDF files, and create parsed XML files. You can also use the C language to write your own PHP extension module. For example, provide a PHP interface function in an existing code library. You can also run PHP in Windows, use COM to control other Windows applications such as Word and Excel, or use ODBC to connect to the database, the following is a summary of PHP string processing functions.

Summary of PHP string processing functions:

 
 
  1. Addcslashes -- add backslash escape characters to some characters in the string
  2. Addslashes -- escape characters in a string in a specified way
  3. Bin2hex -- Convert binary data to hexadecimal representation
  4. Chr -- returns the ASCII code of a character.
  5. Chunk_split -- splits a string into small parts based on a certain character length
  6. Convert_cyr_string -- converts a Slavic character to another character.
  7. Convert_uudecode -- decrypts a string
  8. Convert_uuencode -- encrypt a string
  9. Count_chars -- returns the character usage information in a string.
  10. Crc32 -- calculate the crc32 polynomial of a string
  11. Crypt -- one-way hash encryption function
  12. Explode -- convert a string into an array using a delimiter
  13. Fprintf -- return data as required and directly write data to the document stream
  14. Get_html_translation_table -- returns the HTML entity that can be converted.
  15. Html_entity_decode -- the inverse function of the htmlentities () function, which converts an HTML object to a character
  16. Htmlentities -- convert some characters in a string into HTML entities
  17. Htmlspecialchars_decode -- the inverse function of the htmlspecialchars () function, which converts HTML objects to characters.
  18. Htmlspecialchars -- Converts some characters in a string to HTML entities
  19. Implode -- convert an array into a string using a specific delimiter
  20. Join -- convert an array into a string, alias of the implode () function
  21. Levenshtein -- calculate the difference between two words
  22. Localeconv -- get format definitions related to numbers
  23. Ltrim -- removes white spaces or specified characters on the left of the string
  24. Md5_file -- encrypt an object using the MD5 algorithm
  25. Md5-encrypt a string using the MD5 algorithm
  26. Metaphone -- determines the pronunciation rules of a string
  27. Money_format -- format the output of numbers based on parameters
  28. Nl_langinfo -- Query language and local information
  29. Nl2br -- replace the linefeed "n" in the string with "n"
  30. "
  31. Number_format -- format the output of numbers based on parameters
  32. Ord: converts an ASCII code to a character.
  33. Parse_str -- convert a string of a certain format to a variable and a value
  34. Print -- used to output a separate value
  35. Printf -- Display data as required
  36. Quoted_printable_decode -- encrypt a string into an 8-bit binary string
  37. Quotemeta -- escape several specific characters
  38. Rtrim -- remove the white space or specified characters on the right of the string
  39. Setlocale -- set the local format of numbers, dates, and so on
  40. Sha1_file -- encrypt a file using the SHA1 algorithm
  41. Sha1 -- encrypt a string using the SHA1 algorithm
  42. Similar_text -- compares two strings and returns the number of similar characters that the system considers.
  43. Soundex-rules for determining the pronunciation of a string
  44. Sprintf -- return data as required, but no output
  45. Sscanf -- you can format strings.
  46. Str_ireplace -- matches and replaces strings like the str_replace () function, but is case insensitive.
  47. Str_pad -- pad both sides of the string
  48. Str_repeat -- repeat the string
  49. Str_replace -- match and replace strings
  50. Str_rot13 -- encrypt the string with ROT13
  51. Str_shuffle -- Random Sorting of characters in a string
  52. Str_split -- splits a string into an array based on the character spacing
  53. Str_word_count -- get the English word information in the string
  54. Strcasecmp -- compare the string size, case insensitive
  55. Strchr -- returns the alias of some strstr () functions of a string through comparison.
  56. Strcmp -- compare the size of a string
  57. Strcoll-compare the string size based on local settings
  58. Strcspn -- returns the value of consecutive non-matching lengths.
  59. Strip_tags -- remove the HTML and PHP code in a string
  60. Stripcslashes -- returns the string processed by the addcslashes () function escape function.
  61. Stripos -- locate and return the position of the first matching item. the matching is case insensitive.

...

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.