Strings in PHP

  1. How to effectively use variables within strings to insert bits of data where needed.
  2. A tutorial on using complex curly syntax to access arrays and objects in strings.
  3. Validating user-input is one of the most important ways to increase security and prevent hacks; in this article, I will show how to easily validate GET and POST parameters, and prevent your app from being abused to send spam.
  4. How to check if a string begins with another string.
  5. How to count the number of characters in a multi-byte string using PHP.
  6. Backslash needs to be tediously excaped in PHP, both when uccuring inside your PHP script, and when used with preg_replace.
  7. Tutorial on how to replace parts of a string with str_replace and regular expressions.
  8. Check if a string contains a substring using strpos and regular expressions.
  9. This shows how to do a grep-like action using regular expressions from a PHP script.
  10. How to break down strings into smaller parts using PHP.