Analysis of 51 PHP functions that process strings. Including calculating the length of a string, splitting a string, and searching for a string. 1. AddSlashes: Adds a slash to the string. 2. bin2hex: binary to hexadecimal. 3. Chop: remove
Including calculating the length of a string, splitting a string, and searching for a string.
1. AddSlashes: Adds a slash to the string.
2. bin2hex: binary to hexadecimal.
3. Chop: remove consecutive blank spaces.
4. Chr: returns the character of the ordinal value.
5. chunk_split: splits a string into segments.
6. convert_cyr_string: convert the ancient Slavic string to another string.
7. crypt: encrypt the string with DES encoding.
8. echo: output string.
9. explode: cut the string.
10. flush: clears the output buffer.
11. get_meta_tags: extracts all metadata marked by meta from the file.
12. htmlspecialchars: Convert Special characters into HTML format.
13. htmlentities: convert all characters into HTML strings.
14. implode: convert the array into a string.
15.1 join: convert the array into a string.
16. ltrim: removes consecutive white spaces.
17. md5: calculate the MD5 of the string.
18. nl2br: converts a line break
.
19. Ord: returns the ordinal value of a character.
20. parse_str: parses the query string into a variable.
21. print: output string.
22. printf: output the formatted string.
23. quoted_printable_decode: convert the qp encoded string to an 8-bit string.
24. QuoteMeta: add a reference symbol.
25. rawurldecode: restores a string from a URL-specific format to a normal string.
26. rawurlencode: encode a string into a URL-specific format.
27. setlocale: configure the localized information.
28. similar_text: Calculate string similarity.
29. soundex: calculates the pronunciation value of a string.
30. sprintf: format the string.
31. strchr: find the first occurrence character.
32. strcmp: string comparison.
33. strcspns: the length of different strings.
34. strip_tags: remove HTML and PHP tags.
35. strlen: get the string length.
36. strrpos: find the last occurrence of a character in the string.
37. strpos: find the first occurrence of a character in a string.
38. strrchr: Gets the string starting from the last occurrence of a character.
39. strrev: reverse the string.
40. strspns: Find the number of masks that a string falls into another string.
41. strstr: return the string from the start to the end of a string.
42. strtok: cut the string.
43. strtolower: converts all strings to lowercase letters.
44. strtoupper: converts all strings to uppercase.
45. str_replace: string replacement.
46. strtr: convert certain characters.
47. substr: obtains some strings.
48. trim: removes spaces at the beginning and end of a string.
49. ucfirst: uppercase for the first character of the string.
50. ucwords: change the first letter of each character in the string to uppercase.
51. StripSlashes: remove the backslash character.
Bytes. 1. AddSlashes: Adds a slash to the string. 2. bin2hex: binary to hexadecimal. 3. Chop: remove...