jcadima
6/8/2015 - 1:55 PM

Filter Sanitize

Filter Sanitize


ref: http://php.net/manual/en/filter.filters.sanitize.php

FILTER_SANITIZE_EMAIL
Remove all characters except letters, digits and !#$%&'*+-/=?^_`{|}~@.[].


FILTER_SANITIZE_ENCODED

FILTER_SANITIZE_MAGIC_QUOTES

FILTER_SANITIZE_NUMBER_FLOAT

FILTER_SANITIZE_NUMBER_INT
Remove all characters except digits, plus and minus sign.


FILTER_SANITIZE_SPECIAL_CHARS
HTML-escape '"<>& and characters with ASCII value less than 32, optionally 
strip or encode other special characters.


FILTER_SANITIZE_FULL_SPECIAL_CHARS

FILTER_SANITIZE_STRING
Strip tags, optionally strip or encode special characters.


FILTER_SANITIZE_STRIPPED

FILTER_SANITIZE_URL
Remove all characters except letters, digits and $-_.+!*'(),{}|\\^~[]`<>#%";/?:@&=.


FILTER_UNSAFE_RAW