PHP Tutorial String Filter

Basic

  1. Check if a variable of a specified input type exist in PHP
  2. Encode unwanted characters in PHP
  3. Filter HTML-escapes special characters in PHP
  4. Filter a variable with the specified filter in PHP
  5. Filter multiple variables in PHP
  6. Filter performs the addslashes() function to a string in PHP
  7. Get an array of all supported filters in PHP
  8. Get external variables (like form input) and filter them in PHP
  9. Use FILTER_CALLBACK filter to call a user defined function to filter the value in PHP
  10. Validate value against a Perl-compatible regular expression in PHP
  11. Validate value as a boolean option in PHP

Number

  1. Get the ID number of a specified filter in PHP
  2. Remove all illegal characters from a float number in PHP
  3. Remove all illegal characters from a number in PHP
  4. Validate a value as a float number in PHP
  5. Validate value as integer in PHP

URL

  1. Remove all illegal URL characters from a string in PHP
  2. Strip or URL-encodes unwanted characters in PHP
  3. Validate URL with parametera in PHP
  4. Validate value as a URL in PHP

Email

  1. Remove all illegal e-mail characters from a string in PHP
  2. Validate value as an e-mail address in PHP

IP

  1. Validate the value as an IP address in PHP
  2. Validate the value as an IPv6 address in PHP




















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone