PHP sanitizing filters

Pretty cool built-in PHP filters. I wouldn’t 100% rely on them for sensitive input and I’m not sure how expensive they are, but certainly makes a more consistent interface for dealing with input:

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

use with filter_var, filter_input, etc.

Leave a Reply