Latest web development tutorials

PHP FILTER_UNSAFE_RAW filter

PHP Filter Reference Complete PHP Filter Reference

Definition and Usage

FILTER_UNSAFE_RAW filter without any filtering to remove or encode special characters.

The filter remove those applications potentially harmful data. It is used to remove the label and delete unwanted characters or encoded.

If the flag is not specified, the filter does not have any behavior.

  • Name: "unsafe_raw"
  • ID-number: 516

Possible signs:

  • FILTER_FLAG_STRIP_LOW - removal of characters in the ASCII value of 32 or less
  • FILTER_FLAG_STRIP_HIGH - the removal of more than 32 characters in the ASCII value of
  • FILTER_FLAG_ENCODE_LOW - encoded characters in the ASCII value of 32 or less
  • FILTER_FLAG_ENCODE_HIGH - encoded ASCII value of the character above 32
  • FILTER_FLAG_ENCODE_AMP - the ampersand encoded as & amp;

PHP Filter Reference Complete PHP Filter Reference