PHP String functions List

  1. addcslashes — Quote string with slashes in a C style
  2. addslashes — Quote string with slashes
  3. bin2hex — Convert binary data into hexadecimal representation
  4. chop — Alias of
  5. rtrim()
  6. chr — Return a specific character
  7. chunk_split — Split a string into smaller chunks
  8. convert_cyr_string — Convert from one Cyrillic character set to another
  9. count_chars — Return information about characters used in a string
  10. crc32 — Calculates the crc32 polynomial of a string
  11. crypt — One-way string encryption (hashing)
  12. echo — Output one or more strings
  13. explode — Split a string by string
  14. get_html_translation_table — Returns the translation table used by
  15. htmlspecialchars() and
  16. htmlentities()
  17. get_meta_tags — Extracts all meta tag content attributes from a file and returns an array
  18. hebrev — Convert logical Hebrew text to visual text
  19. hebrevc — Convert logical Hebrew text to visual text with newline conversion
  20. html_entity_decode — Convert all HTML entities to their applicable characters
  21. htmlentities — Convert all applicable characters to HTML entities
  22. htmlspecialchars — Convert special characters to HTML entities
  23. implode — Join array elements with a string
  24. join — Join array elements with a string
  25. levenshtein — Calculate Levenshtein distance between two strings
  26. localeconv — Get numeric formatting information
  27. ltrim — Strip whitespace from the beginning of a string
  28. md5_file — Calculates the md5 hash of a given filename
  29. md5 — Calculate the md5 hash of a string
  30. metaphone — Calculate the metaphone key of a string
  31. money_format — Formats a number as a currency string
  32. nl_langinfo — Query language and locale information
  33. nl2br — Inserts HTML line breaks before all newlines in a string
  34. number_format — Format a number with grouped thousands
  35. ord — Return ASCII value of character
  36. parse_str — Parses the string into variables
  37. print — Output a string
  38. printf — Output a formatted string
  39. quoted_printable_decode — Convert a quoted-printable string to an 8 bit string
  40. quotemeta — Quote meta characters
  41. rtrim — Strip whitespace from the end of a string
  42. setlocale — Set locale information
  43. sha1_file — Calculate the sha1 hash of a file
  44. sha1 — Calculate the sha1 hash of a string
  45. similar_text — Calculate the similarity between two strings
  46. soundex — Calculate the soundex key of a string
  47. sprintf — Return a formatted string
  48. sscanf — Parses input from a string according to a format
  49. str_pad — Pad a string to a certain length with another string
  50. str_repeat — Repeat a string
  51. str_replace — Replace all occurrences of the search string with the replacement string
  52. str_rot13 — Perform the rot13 transform on a string
  53. str_word_count — Return information about words used in a string
  54. strcasecmp — Binary safe case-insensitive string comparison
  55. strchr — Find the first occurrence of a character
  56. strcmp — Binary safe string comparison
  57. strcoll — Locale based string comparison
  58. strcspn — Find length of initial segment not matching mask
  59. strip_tags — Strip HTML and PHP tags from a string
  60. stripcslashes — Un-quote string quoted with
  61. addcslashes()
  62. stripslashes — Un-quote string quoted with
  63. addslashes()
  64. stristr — Case-insensitive
  65. strstr()
  66. strlen — Get string length
  67. strnatcasecmp — Case insensitive string comparisons using a "natural order" algorithm
  68. strnatcmp — String comparisons using a "natural order" algorithm
  69. strncasecmp — Binary safe case-insensitive string comparison of the first n characters
  70. strncmp — Binary safe string comparison of the first n characters
  71. strpos — Find position of first occurrence of a string
  72. strrchr — Find the last occurrence of a character in a string
  73. strrev — Reverse a string
  74. strrpos — Find position of last occurrence of a char in a string
  75. strspn — Find length of initial segment matching mask
  76. strstr — Find first occurrence of a string
  77. strtok — Tokenize string
  78. strtolower — Make a string lowercase
  79. strtoupper — Make a string uppercase
  80. strtr — Translate certain characters
  81. substr_count — Count the number of substring occurrences
  82. substr_replace — Replace text within a portion of a string
  83. substr — Return part of a string
  84. trim — Strip whitespace from the beginning and end of a string
  85. ucfirst — Make a string’s first character uppercase
  86. ucwords — Uppercase the first character of each word in a string
  87. vprintf — Output a formatted string
  88. vsprintf — Return a formatted string
  89. wordwrap — Wraps a string to a given number of characters using a string break character.

If you like the post & want to get more then Subscribe our blog posts. Subscribe SunwareTech.net RSS Feed Facebook Twitter Email

Both comments and pings are currently closed.

8 Responses to “PHP String functions List”

  1. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several e-mails with the same comment. Is there any way you can remove me from that service? Appreciate it!

  2. SSF4 says:

    hi nice blog2

  3. ?? says:

    I find myself strongly over it and love learning on this topic,and melted it a bit leaving resin on the bottom of the part;2

  4. مص says:

    certainly an easy to understand guide a further code samples is amazing though.

  5. Lai Albang says:

    You Have some helpful ideas! Maybe I ought to ponder trying this by my self.

  6. vimax says:

    Great blog you have here but I was wondering if you knew of any community forums that cover the same topics talked about in this article? Id really love to be a part of group where I can get feedback from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Appreciate it!
    Thanksssss.2011

  7. facebook123 says:

    Links…

    […]Sites of interest we have a link to[…]……

  8. click here says:

    Good website! I really love how it is simple on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. I’ve subscribed to your RSS which must do the trick! Have a great day!

Copyright © Sunware Technologies - Your web partner