implements Phalcon\FilterInterface
The Phalcon\Filter component provides a set of commonly needed data filters. It provides object oriented wrappers to the php filter extension. Also allows the developer to define his/her own filters
$filter = new \Phalcon\Filter(); $filter->sanitize("some(one)@exa\\mple.com", "email"); // returns "[email protected]" $filter->sanitize("hello<<", "string"); // returns "hello" $filter->sanitize("!100a019", "int"); // returns "100019" $filter->sanitize("!100a019.01a", "float"); // returns "100019.01"
Adds a user-defined filter
Sanitizes a value with a specified single or set of filters
Internal sanitize wrapper to filter_var
Return the user-defined filters in the instance
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Filter.html